Skip to content

properties-relation-container-presence-present

Variable Service Template

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

tosca_definitions_version: tosca_variability_1_0
topology_template:
    node_templates:
        container:
            type: container
            requirements:
                - relation_one:
                      node: container
                      relationship: relation_one
                      conditions: true
    relationship_templates:
        relation_one:
            type: relation_one
            properties:
                - property_one:
                      conditions:
                          container_presence: SELF
                      value: 69

Variability-Resolved Service Template

The following variability-resolved service template is expected.

tosca_definitions_version: tosca_simple_yaml_1_3
topology_template:
    node_templates:
        container:
            type: container
            requirements:
                - relation_one:
                      node: container
                      relationship: relation_one
    relationship_templates:
        relation_one:
            type: relation_one
            properties:
                property_one: 69

Last update: December 4, 2024