Versions Compared

Key

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

...

Code Block
languagetext
titleONAP Data Model Normatives
linenumberstrue
collapsetrue
##################################
### 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:
    # a derivation of tosca.capabilities.Computea TOSCA normative capability type

  onap.capabilities.Storage:
    # a derivation of tosca.capabilities.Storage a TOSCA normative capability type

policy_types:
  onap.policies.scaling.Fixed:
    # ....

  onap.policies.scaling.Variable:
    # ....

  onap.policies.placement.Affinity:
    # ....

  onap.policies.placement.AntiAffinity:
    # ....

  onap.policies.naming.NumSequence:
    # ....


node_types:
  #TODO: provide a description of the metadata for the node templates
  onap.nodes.Resource:
    description: |
      a base of the ONAP hierarchy of resources
    derived_from: tosca.nodes.Root
    descriptionrequirements: the very base of the ONAP resource hierarchy

      - host:
          interfacesdescription: |
      Standard:     # justAn aONAP reminderresource thatmay allbe resourceshosted haveby a standardTOSCA lifecyclecontainer.
 interface
        type: onap.interfaces.node.lifecycle.Standard
  In a requirements:
VDU, this requirement is of the - host:onap.capabilities.Compute type
          capability: tosca.capabilities.Container
          occurrences: [0, 1]
          relationship: onap.relationship.HostedOn
    
onap.nodes.VNFFunction:
    derived_from: onap.nodes.Resource
    description: an|
 abstract base for thea hierarchyvirtual offunction concrete VNF resources(VNF, VDU, VFC)
    properties:
    # all IM properties
    # ECOMP's
      # ONAP IM's
    interfaces:
      Standard:  # just a reminder that 
        type: tosca.interfaces.node.lifecycle.VNF
	#TODO: check on the HPA use case
  all ECOMP VNF properties
  requirements:
  # 1. MANY requirements of type onap.capabilities.Compute (a summary of
  #    the Compute requirements of all inner Container and VDU nodes
  #    exposed through the substitution mapping)
  # 2. MANY requirements of type onap.capabilities.Linkable (a summary of
  #    the Linkable requirements of all ExtCPs inside the topology
  #    exposed through the substitution mapping)
  # 3. MANY OTHER application-level reqs&caps


  onap.nodes.VDU:
    derived_from: onap.nodes.Resource
    description: |
      represents a virtualization container at the infrastructure level; 
      contains the software image, 
      declares [required] hardware capabilities 
    capabilities:
      host: 
        type: tosca.capabilities.Container
        occurrences: [0, UNBOUNDED]
      compute:
        type: onap.capabilities.Compute
        occurrences: [0, UNBOUNDED]
      storage:
        type: onap.capabilities.Storage 
        occurrences: [0, UNBOUNDED]

...