[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 / oneComputeMultiplePortsSameType / 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 topology_template:
11   inputs:
12     fsb1-name:
13       label: FSB1_name
14       hidden: false
15       immutable: false
16       type: string
17       description: FSB1_name
18     fsb1-Internal1-mac:
19       label: FSB1_internal_mac
20       hidden: false
21       immutable: false
22       type: string
23       description: FSB1_internal_mac
24     fsb-flavor:
25       label: FSB1_flavor
26       hidden: false
27       immutable: false
28       type: string
29       description: FSB1_flavor
30     fsb-image:
31       label: FSB1_image
32       hidden: false
33       immutable: false
34       type: string
35       description: FSB1_image
36     fsb1-Internal2-mac:
37       label: FSB1_internal_mac
38       hidden: false
39       immutable: false
40       type: string
41       description: FSB1_internal_mac
42     fsb1_zone:
43       label: FSB1_zone
44       hidden: false
45       immutable: false
46       type: string
47       description: FSB1_zone
48     network_name:
49       hidden: false
50       immutable: false
51       type: string
52       description: prop
53     CMAUI_volume_type:
54       hidden: false
55       immutable: false
56       type: string
57       description: prop
58     cmaui_cinder_volume_size:
59       hidden: false
60       immutable: false
61       type: string
62       description: prop
63   node_templates:
64     FSB1_Internal2:
65       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
66       properties:
67         mac_address:
68           get_input: fsb1-Internal2-mac
69         network: Internal2-net
70       requirements:
71       - binding:
72           capability: tosca.capabilities.network.Bindable
73           node: FSB1_template
74           relationship: tosca.relationships.network.BindsTo
75     FSB1_Internal1:
76       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
77       properties:
78         mac_address:
79           get_input: fsb1-Internal1-mac
80         network: Internal1-net
81       requirements:
82       - binding:
83           capability: tosca.capabilities.network.Bindable
84           node: FSB1_template
85           relationship: tosca.relationships.network.BindsTo
86       - link:
87           capability: tosca.capabilities.network.Linkable
88           node: jsa_net1
89           relationship: tosca.relationships.network.LinksTo
90     jsa_net1:
91       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
92       properties:
93         shared: true
94         network_name:
95          get_attribute:
96           - FSB1_Internal1
97           - network_id
98         dhcp_agent_ids:
99          get_attribute:
100           - FSB1_template
101           - addresses
102         tenant_id:
103          get_attribute:
104           - FSB1_Internal2
105           - network_id
106         qos_policy:
107          get_attribute:
108           - FSB1_Internal2
109           - network_id
110     FSB1_template:
111       type: org.openecomp.resource.vfc.nodes.heat.FSB
112       properties:
113         flavor:
114           get_input: fsb-flavor
115         image:
116           get_input: fsb-image
117         admin_pass: STATIC-DATA-FSB1
118         availability_zone:
119           get_input: fsb1_zone
120         metadata:
121           write_files:
122           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
123           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
124         name:
125           get_input: fsb1-name
126       artifacts:
127         nimbus-ethernet-gw:
128           type: tosca.artifacts.Deployment
129           file: ../Artifacts/nimbus-ethernet-gw
130         nimbus-ethernet:
131           type: tosca.artifacts.Deployment
132           file: ../Artifacts/nimbus-ethernet
133       requirements:
134       - local_storage:
135           capability: tosca.capabilities.Attachment
136           node: cmaui_volume1
137           relationship: cmaui_volume_attachment
138       - local_storage:
139           capability: tosca.capabilities.Attachment
140           node: cmaui_volume2
141           relationship: cmaui_volume_attachment
142     cmaui_volume1:
143       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
144       properties:
145         volume_type:
146           get_input: CMAUI_volume_type
147         size: '(get_input : cmaui_cinder_volume_size) * 1024'
148     cmaui_volume2:
149       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
150       properties:
151         volume_type:
152           get_input: CMAUI_volume_type
153         size: '(get_input : cmaui_cinder_volume_size) * 1024'
154   groups:
155     ep-jsa_net_group:
156       type: org.openecomp.groups.heat.HeatStack
157       properties:
158         heat_file: ../Artifacts/ep-jsa_net.yaml
159         description: |
160           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
161       members:
162       - FSB1_Internal2
163       - FSB1_Internal1
164       - FSB1_template