Versions Compared

Key

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

...

Node type definition (VNF)Implementing topology templateNotes

node_types:
org.openecomp.resource.vf.Vnf1:
derived_from: org.openecomp.resource.abstract.nodes.VF
properties:
nf_role:
type: string
## other properties omitted for brevity
requirements:
- extcp0.virtualLink:
occurrences: [1, UNBOUNDED]
capability: tosca.capabilities.network.Linkable
relationship: tosca.relationships.network.LinksTo
## other capabilities and requirements omitted for brevity

topology template:
inputs:
nf_roleXXX:
type: string
## other inputs omitted for brevity
node_templates:
extcp0:
# ... has a requirement named extcp0.virtualLink

substitution_mappings:
type: org.openecomp.resource.vf.Vnf1
requirements:
extcp0.virtualLink:
- extcp0
- virtualLink

properties:

nf_role: nf_role_XXX


  1. the virtualLink requirement of the internal node extcp0
    is explicitly mapped onto an external requirement using
    the standard TOSCA substitution mapping syntax
  2. the nf_roleXXX input of the implementing topology is
    explicitly mapped onto an external property using
    the property mapping syntax introduced in TOSCA 1.2.

    The paired input and property do not have to have the same
    name now.

...