You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
An abstract placeholder of a onap.capabilities.Compute required from the cloud infrastructure.
Normally, a dangling requirement of type onap.capabilities.Compute is sufficient to specify an abstraction of Compute resource. The onap.capabilities.AbstractCompute allows the designer to clearly designate sharing of the same Compute by multiple components.
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
Examples
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: