Composite
Monolith Resource Type Definition
node_types:
com.vendorXXX.MyTinyMonolith:
derived_from: onap.nodes.Resource
artifacts:
- software_image: my_install_script.sh
requirements:
- cp_1:
node_filter:
capabilities:
- onap.capabilities.Linkable
properties:
protocols: [IPv4, TCP]
roles:[peer]
bitrate:
- greater_or_equal: 1000
- cp_2:
node_filter:
capabilities:
- onap.capabilities.Linkable
properties:
protocols: [IPv6, UDP]
roles:[peer]
bitrate:
- greater_or_equal: 1000
- host:
node_filter:
capabilities:
- onap.capabilities.Compute
properties:
num_cpus:
- greater_or_equal: 2
A topology composed of such monoliths:
Topology composed of monoliths
node_templates:
component_1:
type: com.vendorXXX.MyTinyMonolith
requirements:
- cp_1:
node: internal_vl
capability: link
- cp_2:
# to be exposed
- host:
node: my_compute
capability: host
component_2:
type: com.vendorXXX.MyTinyMonolith
requirements:
- cp_1:
node: internal_vl
capability: link
- cp_2:
# to be exposed
- host:
node: my_compute
capability: host
internal_vl:
type: onap.nodes.VL
capabilities:
link:
my_compute:
type: onap.resources.Container
artifacts:
- software_image: container_image.iso
requirements:
- host:
node_filter:
capabilities:
- onap.capabilities.Compute
properties:
num_cpus:
- greater_or_equal: 2
substitution_mappings:
type: com.vendorYYY.MyVNFC
requirements:
mgmt_link: [component_1, cp_2]
data_link: [component_2, cp_2]
host: [my_compute, host]
The interface type of the above topology:
Topology Interface Type
node_types:
com.vendorYYY.MyVNFC:
derived_from: onap.resource.Resource
requirements:
- mgmt_link: # copied from [component_1, cp_2]
- data_link: # copied from [component_2, cp_2]
- host: # copied from [my_compute, host]