push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / global_types / expectedoutputfiles / NativeTypesServiceTemplateServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: NativeTypesServiceTemplate
4   template_version: 1.0.0
5 description: TOSCA Native Node Types
6 node_types:
7   tosca.nodes.Compute:
8     derived_from: tosca.nodes.Root
9     attributes:
10       private_address:
11         type: string
12         description: private address
13         status: SUPPORTED
14       public_address:
15         type: string
16         description: public_address
17         status: SUPPORTED
18       networks:
19         type: map
20         description: networks
21         status: SUPPORTED
22         entry_schema:
23           type: tosca.datatypes.network.NetworkInfo
24       ports:
25         type: map
26         description: ports
27         status: SUPPORTED
28         entry_schema:
29           type: tosca.datatypes.network.PortInfo
30     requirements:
31     - local_storage:
32         capability: tosca.capabilities.Attachment
33         node: tosca.nodes.BlockStorage
34         relationship: tosca.relationships.AttachesTo
35         occurrences:
36         - 0
37         - UNBOUNDED
38     capabilities:
39       scalable:
40         type: tosca.capabilities.Scalable
41         occurrences:
42         - 1
43         - UNBOUNDED
44       endpoint:
45         type: tosca.capabilities.Endpoint.Admin
46         occurrences:
47         - 1
48         - UNBOUNDED
49       os:
50         type: tosca.capabilities.OperatingSystem
51         occurrences:
52         - 1
53         - UNBOUNDED
54       host:
55         type: tosca.capabilities.Container
56         valid_source_types:
57         - tosca.nodes.SoftwareComponent
58         occurrences:
59         - 1
60         - UNBOUNDED
61       binding:
62         type: tosca.capabilities.network.Bindable
63         occurrences:
64         - 1
65         - UNBOUNDED
66   tosca.nodes.network.Port:
67     derived_from: tosca.nodes.Root
68     properties:
69       ip_range_end:
70         type: string
71         required: false
72         status: SUPPORTED
73       ip_range_start:
74         type: string
75         required: false
76         status: SUPPORTED
77       ip_address:
78         type: string
79         required: false
80         status: SUPPORTED
81       is_default:
82         type: boolean
83         required: false
84         default: false
85         status: SUPPORTED
86       order:
87         type: integer
88         required: true
89         default: 0
90         status: SUPPORTED
91         constraints:
92         - greater_or_equal: 0
93     requirements:
94     - link:
95         capability: tosca.capabilities.network.Linkable
96         node: tosca.nodes.Root
97         relationship: tosca.relationships.network.LinksTo
98         occurrences:
99         - 1
100         - 1
101     - binding:
102         capability: tosca.capabilities.network.Bindable
103         node: tosca.nodes.Root
104         relationship: tosca.relationships.network.BindsTo
105         occurrences:
106         - 1
107         - 1
108   tosca.nodes.Root:
109     attributes:
110       tosca_name:
111         type: string
112         description: tosca name
113         status: SUPPORTED
114       state:
115         type: string
116         description: state
117         status: SUPPORTED
118       tosca_id:
119         type: string
120         description: tosca id
121         status: SUPPORTED
122     interfaces: {
123       }
124   tosca.nodes.network.Network:
125     derived_from: tosca.nodes.Root
126     properties:
127       physical_network:
128         type: string
129         required: false
130         status: SUPPORTED
131       dhcp_enabled:
132         type: boolean
133         required: false
134         default: true
135         status: SUPPORTED
136       segmentation_id:
137         type: string
138         required: false
139         status: SUPPORTED
140       network_id:
141         type: string
142         required: false
143         status: SUPPORTED
144       ip_version:
145         type: integer
146         required: false
147         default: 4
148         status: SUPPORTED
149         constraints:
150         - valid_values:
151           - 4
152           - 6
153       start_ip:
154         type: string
155         required: false
156         status: SUPPORTED
157       network_name:
158         type: string
159         required: false
160         status: SUPPORTED
161       cidr:
162         type: string
163         required: false
164         status: SUPPORTED
165       gateway_ip:
166         type: string
167         required: false
168         status: SUPPORTED
169       network_type:
170         type: string
171         required: false
172         status: SUPPORTED
173       end_ip:
174         type: string
175         required: false
176         status: SUPPORTED
177     capabilities:
178       link:
179         type: tosca.capabilities.network.Linkable
180         occurrences:
181         - 1
182         - UNBOUNDED
183   tosca.nodes.BlockStorage:
184     derived_from: tosca.nodes.Root
185     properties:
186       size:
187         type: scalar-unit.size
188         required: false
189         status: SUPPORTED
190         constraints:
191         - greater_or_equal: 1 MB
192       volume_id:
193         type: string
194         required: false
195         status: SUPPORTED
196       snapshot_id:
197         type: string
198         required: false
199         status: SUPPORTED
200     capabilities:
201       attachment:
202         type: tosca.capabilities.Attachment
203         occurrences:
204         - 1
205         - UNBOUNDED