Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3760

Support get_input for complex data types

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Jakarta Release
    • None
    • None
    • None

      Currently we support declaring an input and assigning the input to the value of a property in the node template (i.e. in an VFC instance in a service).

      It is possible to declare an input with a complex data type. TOSCA supports assigning the value of one of the nested elements of the input to a property. This story is to introduce this support to SDC.

      For example:

      data_types:
      NetworkInfo:
      derived_from: tosca.Data.Root
      properties:
      name:
      type: string
      gateway:
      type: string

      topology_template:
      inputs:
      management_network:
      type: NetworkInfo

      node_templates:
      Bono_Main:
      type: vRouter.Cisco
      properties:
      mgmt_net_name:

      { get_input: [management_network, name]}

      See chapter 4.4.1 of TOSCA Simple YAML Profile 1.3 for reference

            aribeiro aribeiro
            aribeiro aribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: