a269005ac866f3807454a2189dffac5b01063015
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   Attribute can be defined explicitly as part of type definition
5   or implicitly via property. This TOSCA template tests validation
6   of attribute name implicitly created as a property and referenced
7   via get_attribute function.
8
9 node_types:
10   ServerNode:
11     derived_from: SoftwareComponent
12     properties:
13       notification_port:
14         type: integer
15
16 topology_template:
17   node_templates:
18     my_server:
19       type: ServerNode
20       properties:
21         notification_port: 8000
22
23   outputs:
24     ip_address:
25       value: { get_attribute: [ my_server, notification_port ] }