File: test_substitution_mappings_section.yaml

package info (click to toggle)
python-tosca-parser 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: python: 11,185; sh: 144; makefile: 26
file content (51 lines) | stat: -rw-r--r-- 1,209 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
tosca_definitions_version: tosca_simple_yaml_1_3

topology_template:
  inputs:
    my_property:
      type: string

  substitution_mappings:
    node_type: my.company.MyService
    interfaces:
      Standard:
        start: my_start_node.start
    attributes:
      receiver_ip: my_property
    substitution_filter:
      node_filter:
        properties:
          - my_property: 'property_value'
        capabilities:
          - capability_name_or_type_1:
            properties:
              - cap_1_property_filter_def_1
              - cap_1_property_filter_def_2

  node_templates:
    my_start_node:
      type: my.company.MyServiceCompute
      properties:
        my_property: { get_input: my_property }
      interfaces:
        Standard:
          start:
            implementation: scripts/start.sh
            inputs:
              my_property: { get_property: [ SELF, my_property ] }

node_types:
  my.company.MyService:
    derived_from: tosca.nodes.Root
    properties:
      my_property:
        type: string
    attributes:
      receiver_ip:
        type: string

  my.company.MyServiceCompute:
    derived_from: tosca.nodes.Compute
    properties:
      my_property:
        type: string