Uploaded image for project: 'OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC'
  1. OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC
  2. TOSCA-217

Add new simplified, single-line list notation / grammar for Requirement Def.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: CSD2
    • Fix Version/s: CSD2
    • Component/s: Profile-YAML
    • Labels:
      None

      Description

      The current grammar for Requirement Def. is as follows:

      <requirement_name>:
      node: <node_type_or_template_name>
      capability: <capability_type_or_template_name>
      relationship: <relationship_type_or_template_name>

      The new notation would allow the a single-line, list notation for a very common case where only the 'tuple names (i.e., node, capability, name are needed (no target_filter) as follows:

      requirement: [ <node_name>, <capability_name>, <relationship_name> ]

      For example, the new notation would allow the following host requirement:
      requirements:

      • db_admin_console:
        node: my_database
        capability: db_admin_endpoint
        relationship: my_connection

      to be written more simple as:

      requirements:

      • db_admin_console: [ my_database, db_admin_endpoint, my_connection ]

      ------------
      Note: we may want to discuss ordering of list to put relationship in the 2nd entry in the list instead of the capability, whatever seems to be the most common use case (i.e., are relationships or capabilities needed more often when describing a requirement?).

        Attachments

          Activity

            People

            • Assignee:
              mrutkows Matthew Rutkowski (Inactive)
              Reporter:
              mrutkows Matthew Rutkowski (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated: