Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

An abstract placeholder of a provider of a onaponap.capabilities.Compute required from the cloud infrastructure.

NormallyIn simplest cases, a dangling requirement of type onap.capabilities.Compute is sufficient to specify an abstraction of a Compute resource. The onap.capabilities.AbstractCompute is an additional option that allows the designer to clearly designate sharing of the same Compute by multiple components.

...

Code Block
titleonap.nodes.AbstractCompute
linenumberstrue
collapsetrue
node_types:
  onap.nodes.AbstractCompute:
    derived_from: onap.nodes.Resource
    capabilities:
      host:
        type: tosca.capabilities.Container
        occurrences: [1, UNBOUNDED] # a container can host one or more VDUs
    requirements:
      - host:
          capability: onap.capabilities.Compute
          description: hardware required to function    

Capabilities



NameRequiredTypeConstraintsDescription
host
tosca.capabilities.Container1, UNBOUNDEDan abstract compute can satisfy one or more requirements of the type tosca.capabilities.Container (or derived)



Requirements



NameRequiredTypeConstraintsDescription
host
onap.capabilities.Compute
computational power required by the model from the infrastructure


Examples


Code Block
titleUsage Example
linenumberstrue
collapsetrue
node_templates:
  # This node does not care how its Compute requirement will be satisfied
  part_1:
    type: PartOfMyFirewall
    requirements:
      - host:
          node_filter:
            properties:
              num_cpus: 2
              
  # These two nodes want to share the same Compute
  part_2:
    type: PartOfMyFirewall
    requirements:
      - host:
          node: compute_1
          capability: host
          
  part_3:
    type: PartOfMyFirewall
    requirements:
      - host:
          node: compute_1
          capability: host
              
  compute_1:
    type: onap.nodes.AbstractCompute
    capabilities:
      host: