Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added in Resource props and attrs that were lost with new derivation

...

Code Block
linenumberstrue
node_types:
  onap.nodes.CP:
    derived_from: tosca.nodes.Root    
    description: a connection point
    properties:
      catalog_info:
        type: onap.datatypes.CatalogInfo
        description:
        required: true
        # generated by Design Time Catalog once, then never changed
      role:
        type: string
        description: the role a template plays in a topology
        required: false
    attributes:
      instance_name: 
        type: string
        description: the name of the run-time instance of in the deployment  
  requirements:
    - binding:
        description: binding with a NetworkFunctionComponent
        capability: onap.capabilities.Bindable
        occurrences: [1, 1] # exactly one occurrence
        relationships: onap.relationships.BindsTo
    - link:
        description: link to a network.  If left dangling, it is external.
        capability: onap.capabilities.Linkable
        occurrences: [1, 1]
            # Exactly one occurrence;
            # either spend it with an internal VL (and this is how this CP becomes internal)
            # or leave it unsatisfied (and thus make the CP external)
        relationships: onap.relationships.LinksTo
            # without a relationship, a TOSCA requirement cannot have properties :(

...