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

Support for updating interface operations in component instances

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Honolulu Release
    • None
    • SDC
    • None

      Allow to update interface operations on a component instance, which includes adding/removing input assignments.

      TOSCA allows to insert a dynamic input to node interface operations: https://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.3/os/TOSCA-Simple-Profile-YAML-v1.3-os.html#_Toc26969435

      None of the pre-defined TOSCA interfaces operations have inputs, see 5.8 Interface Types:

      • tosca.interfaces.Root
      • tosca.interfaces.node.lifecycle.Standard
      • tosca.interfaces.relationship.Configure

      So the inputs are created in a node_template, without the need of pre-defining it. Also the inputs seems to be environment variables, so we should consider to be a string/string key/value pair.

      For example, when using script artifacts, input values are passed as environment variables within the execution environments in which the scripts associated with lifecycle operations are run.

       We are aiming to have a operation definition with input assignments:

      3.6.17.2.3 Extended notation for use in Template definitions

      <operation_name>:
         description: <operation_description>
         implementation: <Operation implementation definition>
         inputs:
           <property_assignments>

      Where each input is a 3.6.11 Property assignment, which we can consider only string values.

      <property_name>: <property_value> | { <property_value_expression> }

      And the operation implementation definition is the short notation for a single artifact:

      3.6.16.2.1 Short notation for use with single artifact

      implementation: <primary_artifact_name>

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

              Created:
              Updated:
              Resolved: