Skip to content

relationships-type-specific

Variable Service Template

The variability of the following variable service template shall be resolved.

tosca_definitions_version: tosca_variability_1_0
topology_template:
  variability:
    options:
      type_default_condition: true
      relation_default_condition: true
    type_specific_conditions:
      relationship_types:
        rone:
          conditions: false
  node_templates:
    source:
      type: source
      requirements:
        - one:
            node: target
            relationship: rone
        - two:
            node: target
            relationship: rtwo
    target:
      type: target
  relationship_templates:
    rone:
      type: rone
    rtwo:
      type: rtwo

Variability-Resolved Service Template

The following variability-resolved service template is expected.

tosca_definitions_version: tosca_simple_yaml_1_3
topology_template:
  node_templates:
    source:
      type: source
      requirements:
        - two:
            node: target
            relationship: rtwo
    target:
      type: target
  relationship_templates:
    rtwo:
      type: rtwo

Last update: April 28, 2024