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

Declare implicit attributes as outputs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Montreal Release
    • None
    • None
    • None

      Most entity types in TOSCA (e.g., Node, Relationship, Capability Types, etc.) have property definitions, which allow template authors to set the values for as inputs when these entities are instantiated by an orchestrator.  These property values are considered to reflect the desired state of the entity by the author.   Once instantiated, the actual values for these properties on the realized (instantiated) entity are obtainable via attributes on the entity with the same name as the corresponding property.

      In other words, TOSCA orchestrators will automatically reflect (i.e., make available) any property defined on an entity as an attribute of the entity with the same name as the property.

       

      Currently SDC only supports declaring outputs from attributes that are explicitly defined on the node type. This story is to support declaring attributes that implicitly exist for defined properties.

       

      Implementation:

      • In the Attributes table in the "Attributes & Outputs" view, add an attribute for all properties defined on the node type
      • If an attribute already exists with the same name as a property then another attribute should NOT be added for that property
      • The backend already supports creating the attribute and output when a property name is sent in the call to the backed from the "Declare Output" button

            JvD_Ericsson JEFF VAN DAM
            JvD_Ericsson JEFF VAN DAM
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: