TIDM onap.nodes.AbstractCompute
Description
An abstract placeholder of a provider of onap.capabilities.Compute required from the cloud infrastructure.
In 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.
onap.nodes.AbstractCompute
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
Name | Required | Type | Constraints | Description |
---|---|---|---|---|
host | tosca.capabilities.Container | 1, UNBOUNDED | an abstract compute can satisfy one or more requirements of the type tosca.capabilities.Container (or derived) |
Requirements
Name | Required | Type | Constraints | Description |
---|---|---|---|---|
host | onap.capabilities.Compute | computational power required by the model from the infrastructure |
Examples
Usage Example
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: