-
Bug
-
Resolution: Done
-
Medium
-
Guilin Release
-
None
The properties entry in substitution_mappings should have the syntax of property mapping instead of property definition as it is.
In TOSCA 1.3 documentation, section 3.8.13 Substitution mapping, the properties entry represents "The optional map of properties mapping allowing to map properties of the node_type to inputs of the topology template.":
node_type: <node_type_name> substitution_filter: <node_filter> properties: <property_mappings> capabilities: <capability_mappings> requirements: <requirement_mappings> attributes: <attribute_mappings> interfaces: <interface_mappings>
Property mapping is defined in the section 3.8.8 Property mapping:
<property_name>: [ <input_name> ]
Using the following example, the properties section should be generated like (also as per SDC-3254):
topology_template: inputs: input1: type: list entry_schema: string input2: type: string input3: type: integer default: 1 [...] substitution_mappings: [...] properties: input1: [ input1 ] input2: [ input2 ] input3: [ input3 ]
Instead of (as it is today):
topology_template: inputs: input1: type: list entry_schema: string input2: type: string input3: type: integer default: 1 [...] substitution_mappings: [...] properties: input1: type: list entry_schema: string input2: type: string input3: type: integer default: 1
- relates to
-
SDC-3254 Map topology inputs to properties in substitution mapping
- Closed