See also: ScalingONAP DT DM example..
Code Block |
---|
language | text |
---|
title | ONAP Data Model Normatives |
---|
linenumbers | true |
---|
collapse | true |
---|
|
##################################
### ONAP Data Model Normatives ###
##################################
data_types:
interface_types:
onap.interfaces.node.lifecycle.Standard:
derived_from: tosca.interfaces.node.lifecycle.Standard
description: the ONAP resource lifecycle interface, in case it extends the standard TOSCA's
# here come the extensions
onap.interfaces.node.lifecycle.VNF:
# VNFs may need an extended lifecycle interface
onap.interfaces.node.lifecycle.Service:
# Services may need an extended lifecycle interface
capability_types:
onap.capabilities.Compute:
# ....
onap.capabilities.Storage:
# ....
policy_types:
onap.policies.scaling.Fixed:
# ....
onap.policies.scaling.Variable:
# ....
onap.policies.placement.Affinity:
# ....
onap.policies.placement.AntiAffinity:
# ....
onap.policies.naming.NumSequence:
# ....
node_types:
onap.nodes.Resource:
derived_from: tosca.nodes.Root
description: the very base of the ONAP resource hierarchy
interfaces:
Standard: # just a reminder that all resources have a standard lifecycle interface
type: tosca.interfaces.node.lifecycle.Standard
requirements:
- container:
capability: tosca.capabilities.Container
occurrences: [1, UNBOUNDED]
onap.nodes.VNF:
derived_from: onap.nodes.Resource
description: an abstract base for the hierarchy of concrete VNF resources
properties:
# ECOMP's
# Andy's
interfaces:
Standard: # just a reminder that
type: tosca.interfaces.node.lifecycle.Standard
onap.nodes.VDU:
derived_from: onap.nodes.Resource
description: a virtualization container
capabilities:
container:
type: tosca.capabilities.Container
occurrences: [0, UNBOUNDED]
requirements:
- compute:
type: onap.capabilities.Compute
- storage:
type: onap.capabilities.Storage
|
...
Code Block |
---|
language | text |
---|
title | Service using the Vendor VNF |
---|
linenumbers | true |
---|
collapse | true |
---|
|
######################################
### A Service using the Vendor VNF ###
######################################
topology_template:
node_templates:
vnf_1:
type: com.vendorxxx.VNF_ABC
properties:
num_of_instances_inside: 13
|
See also: Scaling