[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 / consolidation / translatedfiles / pre_condition / three_compute_two_similar_one_diff / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 node_types:
38   org.openecomp.resource.vfc.nodes.heat.ps_server:
39     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
40   org.openecomp.resource.vfc.nodes.heat.cmaui:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50       default: nova
51     repl_net_ips:
52       label: repl network ips
53       hidden: false
54       immutable: false
55       type: list
56       description: ips of repl network
57       default:
58       - 107.239.33.57
59       - 107.239.33.58
60       entry_schema:
61         type: string
62     oam_net_name:
63       label: oam network name
64       hidden: false
65       immutable: false
66       type: string
67       description: name of the oam network
68       default: oam_protected_net_0
69     oam_net_ips:
70       label: internet network ips
71       hidden: false
72       immutable: false
73       type: list
74       description: ip of the OAM network
75       default:
76       - 107.250.172.213
77       - 107.250.172.214
78       - 107.250.172.215
79       - 107.250.172.216
80       - 107.250.172.217
81       entry_schema:
82         type: string
83       default: 169.254.1.4
84     ps_server_names:
85       label: PS server names
86       hidden: false
87       immutable: false
88       type: list
89       description: name of the PS instance
90       default:
91       - ZRDM1MOGX01MPS001
92       - ZRDM1MOGX01MPS002
93       - ZRDM1MOGX01MPS003
94       - ZRDM1MOGX01MPS004
95       entry_schema:
96         type: string
97     csb_net_ips:
98       hidden: false
99       immutable: false
100       type: list
101       description: mog_csb_net IP addresses
102       default:
103       - 172.26.0.10
104       - 172.26.0.11
105       - 172.26.0.12
106       - 172.26.0.13
107       - 172.26.0.14
108       - 172.26.0.15
109       - 172.26.0.16
110       - 172.26.0.17
111       - 172.26.0.18
112       - 172.26.0.19
113       - 172.26.0.20
114       entry_schema:
115         type: string
116     ps_flavor_name:
117       label: PS flavor name
118       hidden: false
119       immutable: false
120       type: string
121       description: flavor name of PS instance
122       default: m3.xlarge
123     ps_image_name:
124       label: PS image name
125       hidden: false
126       immutable: false
127       type: string
128       description: PS image name
129       default: MOG_BASE_8.0
130     repl_net_name:
131       label: Replication network name
132       hidden: false
133       immutable: false
134       type: string
135       description: name of the replication network
136       default: cor_direct_net_0
137   node_templates:
138     cm01_port_1:
139       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
140       properties:
141         fixed_ips:
142         - ip_address:
143             get_input:
144             - oam_net_ips
145             - 4
146         allowed_address_pairs:
147           get_input:
148           - interface_list
149           - 2
150           - allowed_address_pairs
151         mac_address:
152           get_input: ncb1_internal1_mac_address
153       requirements:
154       - binding:
155           capability: tosca.capabilities.network.Bindable
156           node: server_cm01
157           relationship: tosca.relationships.network.BindsTo
158     sm01_port_1:
159       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
160       properties:
161         fixed_ips:
162         - ip_address:
163             get_input:
164             - oam_net_ips
165             - 4
166         allowed_address_pairs:
167           get_input:
168           - interface_list
169           - 2
170           - allowed_address_pairs
171         mac_address:
172           get_input: ncb1_internal1_mac_address
173       requirements:
174       - link:
175           capability: tosca.capabilities.network.Linkable
176           node: csb_net
177           relationship: tosca.relationships.network.LinksTo
178       - binding:
179           capability: tosca.capabilities.network.Bindable
180           node: server_sm02
181           relationship: tosca.relationships.network.BindsTo
182     server_ps01:
183       type: org.openecomp.resource.vfc.nodes.heat.ps_server
184       properties:
185         flavor:
186           get_input: ps_flavor_name
187         availability_zone:
188           get_input: availabilityzone_name
189         image:
190           get_input: ps_image_name
191         user_data_format: RAW
192         name:
193           get_input:
194           - ps_server_names
195           - 3
196     server_ps02:
197       type: org.openecomp.resource.vfc.nodes.heat.ps_server
198       properties:
199         flavor:
200           get_input: ps_flavor_name
201         availability_zone:
202           get_input: availabilityzone_name
203         image:
204           get_input: ps_image_name
205         user_data_format: RAW
206         name:
207           get_input:
208           - ps_server_names
209           - 2
210     server_ps03:
211       type: org.openecomp.resource.vfc.nodes.heat.cmaui
212       properties:
213         flavor:
214           get_input: ps_flavor_name
215         availability_zone:
216           get_input: availabilityzone_name
217         image:
218           get_input: ps_image_name
219         user_data_format: RAW
220         name:
221           get_input:
222           - ps_server_names
223           - 2