[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / createAbstractSubstitute / oneComputeMultiplePortsDiffType / in / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.FSB:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10
11 topology_template:
12   inputs:
13     fsb1-name:
14       label: FSB1_name
15       hidden: false
16       immutable: false
17       type: string
18       description: FSB1_name
19     fsb1-Internal1-mac:
20       label: FSB1_internal_mac
21       hidden: false
22       immutable: false
23       type: string
24       description: FSB1_internal_mac
25     fsb-flavor:
26       label: FSB1_flavor
27       hidden: false
28       immutable: false
29       type: string
30       description: FSB1_flavor
31     fsb-image:
32       label: FSB1_image
33       hidden: false
34       immutable: false
35       type: string
36       description: FSB1_image
37     fsb1-Internal2-mac:
38       label: FSB1_internal_mac
39       hidden: false
40       immutable: false
41       type: string
42       description: FSB1_internal_mac
43     fsb1_zone:
44       label: FSB1_zone
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_zone
49     network_name:
50       hidden: false
51       immutable: false
52       type: string
53       description: prop
54     fsb1-oam-ip:
55       hidden: false
56       immutable: false
57       type: string
58       description: prop
59     CMAUI_volume_type:
60       hidden: false
61       immutable: false
62       type: string
63       description: prop
64     cmaui_cinder_volume_size:
65       hidden: false
66       immutable: false
67       type: string
68       description: prop
69   node_templates:
70     FSB2_Internal2:
71       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
72       properties:
73         mac_address:
74           get_input: fsb1-Internal2-mac
75         network: Internal2-net
76       requirements:
77       - binding:
78           capability: tosca.capabilities.network.Bindable
79           node: FSB1_template
80           relationship: tosca.relationships.network.BindsTo
81     FSB1_Internal1:
82       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
83       properties:
84         mac_address:
85           get_input: fsb1-Internal1-mac
86         network: Internal1-net
87       requirements:
88       - binding:
89           capability: tosca.capabilities.network.Bindable
90           node: FSB1_template
91           relationship: tosca.relationships.network.BindsTo
92       - link:
93           capability: tosca.capabilities.network.Linkable
94           node: jsa_net1
95           relationship: tosca.relationships.network.LinksTo
96     FSB1_OAM:
97       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
98       properties:
99         fixed_ips:
100         - ip_address:
101             get_input: fsb1-oam-ip
102         network: jsa_net1
103       requirements:
104       - binding:
105           capability: tosca.capabilities.network.Bindable
106           node: FSB1_template
107           relationship: tosca.relationships.network.BindsTo
108       - link:
109           capability: tosca.capabilities.network.Linkable
110           node: jsa_net1
111           relationship: tosca.relationships.network.LinksTo
112     jsa_net1:
113       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
114       properties:
115         shared: true
116         network_name:
117          get_attribute:
118           - FSB1_Internal1
119           - network_id
120         dhcp_agent_ids:
121          get_attribute:
122           - FSB1_template
123           - addresses
124         tenant_id:
125          get_attribute:
126           - FSB2_Internal2
127           - network_id
128         qos_policy:
129          get_attribute:
130           - FSB2_Internal2
131           - network_id
132     FSB1_template:
133       type: org.openecomp.resource.vfc.nodes.heat.FSB
134       properties:
135         flavor:
136           get_input: fsb-flavor
137         image:
138           get_input: fsb-image
139         admin_pass: STATIC-DATA-FSB1
140         availability_zone:
141           get_input: fsb1_zone
142         metadata:
143           write_files:
144           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
145           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
146         name:
147           get_input: fsb1-name
148       artifacts:
149         nimbus-ethernet-gw:
150           type: tosca.artifacts.Deployment
151           file: ../Artifacts/nimbus-ethernet-gw
152         nimbus-ethernet:
153           type: tosca.artifacts.Deployment
154           file: ../Artifacts/nimbus-ethernet
155       requirements:
156       - local_storage:
157           capability: tosca.capabilities.Attachment
158           node: cmaui_volume1
159           relationship: cmaui_volume_attachment
160       - local_storage:
161           capability: tosca.capabilities.Attachment
162           node: cmaui_volume2
163           relationship: cmaui_volume_attachment
164     cmaui_volume1:
165       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
166       properties:
167         volume_type:
168           get_input: CMAUI_volume_type
169         size: '(get_input : cmaui_cinder_volume_size) * 1024'
170     cmaui_volume2:
171       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
172       properties:
173         volume_type:
174           get_input: CMAUI_volume_type
175         size: '(get_input : cmaui_cinder_volume_size) * 1024'
176   groups:
177     ep-jsa_net_group:
178       type: org.openecomp.groups.heat.HeatStack
179       properties:
180         heat_file: ../Artifacts/ep-jsa_net.yaml
181         description: |
182           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
183       members:
184       - FSB2_Internal2
185       - FSB1_Internal1
186       - FSB1_OAM
187       - FSB1_template