-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
SDC Sprint 6
In the TOSCA spec, the definition of substitution_mappings is "
An optional declaration that exports the topology template as an implementation of a Node type.
This also includes the mappings between the external Node Types named capabilities and requirements to existing implementations of those capabilities and requirements on Node templates declared within the topology template."
But I can't find the corresponding node template for the defined capabilities and requirements in the substitution_mappings part of the TOSCA template designed by SDC.
For example:
The substitution_mappings defined in the service-57431726F7e64a30Ae52-template.yml of service-vvg.csar
# omitted here for brevity tosca_definitions_version: tosca_simple_yaml_1_0 # omitted here for brevity topology_template: node_templates: d7c95393-7396-4d74-a3b0 0: type: org.openecomp.resource.vf.D7c9539373964d74A3b0 metadata: invariantUUID: 7564e792-a8af-4f73-9910-2e3b88dfa862 UUID: 31d208bc-9744-4060-baa8-2decca503193 customizationUUID: 2f9f65ab-6aef-48fc-a63f-5ac96e88c0ad version: '1.0' name: d7c95393-7396-4d74-a3b0 description: vendor software product type: VF category: Generic subcategory: Abstract resourceVendor: 06715d78-893c-4a45-88c1 resourceVendorRelease: '1.0' groups: # omitted here for brevity substitution_mappings: node_type: org.openecomp.service.57431726F7e64a30Ae52 capabilities: d7c9539373964d74a3b00.cinder_volume.feature: - cinder_volume - cinder_volume.feature d7c9539373964d74a3b00.cinder_volume.attachment: - cinder_volume - cinder_volume.attachment requirements: d7c9539373964d74a3b00.cinder_volume.dependency: - cinder_volume - cinder_volume.dependency
Compare with an example in TOSCA spec: http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.1/csprd02/TOSCA-Simple-Profile-YAML-v1.1-csprd02.html#_Toc474149740
the substitution_mappings capability message_receiver expose the message_receiver capability of app node template,
the substitution_mappings requirement database_endpoint expose the database capability of app node template,
tosca_definitions_version: tosca_simple_yaml_1_0 topology_template: description: Template of a database including its hosting stack. # omitted for brevity substitution_mappings: node_type: example.TransactionSubsystem capabilities: message_receiver: [ app, message_receiver ] requirements: database_endpoint: [ app, database ] node_templates: app: type: example.SomeApp properties: # properties omitted for brevity capabilities: message_receiver: properties: service_ip: { get_input: mq_service_ip } # other properties omitted for brevity requirements: - database: # details omitted for brevity - host: websrv