Skip to content

cna.qualityModel.entities.Compute.Infrastructure

The Compute.Infrastructure Node represents an Infrastructure entity. It extends the original TOSCA Compute Node in order to allow a Compute Node to be hosted by another one, which allows representing Infrastructure entities to be hosted by other Infrastructure entities. Additionally, modeled Backing Data can be referenced.

File references:      TOSCA-File

Shorthand Name Compute.Infrastructure
Type Qualified Name qualityModel:Compute.Infrastructure
Type URI cna.qualityModel.entities.Compute.Infrastructure

1. Properties

Name Required Type Constraints
Description
N/A N/A N/A N/A N/A

2. Attributes

Name Required Type Constraints
Description
N/A N/A N/A N/A N/A

3. Definition

cna.qualityModel.entities.Compute.Infrastructure:
  derived_from: tosca.nodes.Compute
  description: Node Type to model Infrastructure entities
  requirements:
    # Allow the deployment on another Infrastructure entity
    - host:
        capability: tosca.capabilities.Compute
        relationship: tosca.relationships.HostedOn
        occurrences: [0, 1]
    # Allow the definition of Backing Data usage
    - uses_backing_data:
        capability: tosca.capabilities.Attachment
        node: cna.qualityModel.entities.BackingData
        relationship: cna.qualityModel.relationships.AttachesTo.Data
        occurrences: [0, UNBOUNDED]
  capabilities:
    # Allow deployment of any Node Type
    host:
      type: tosca.capabilities.Compute
      valid_source_types: [tosca.nodes.Root]  

4. Example

docker_host:
  type: cna.qualityModel.entities.SoftwareComponent.Compute.Infrastructure
  requirements:
    - host:
        node: local_computer
        relationship: localComputer_host_dockerHost

Last update: 2022-08-31
Back to top