Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3307

substitution_mappings properties should be property mapping instead of property definition

XMLWordPrintable

      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

       

       

       

            andre.schmid andre.schmid
            andre.schmid andre.schmid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: