[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 / valid_pre_condition / 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 topology_template:
41   inputs:
42     availabilityzone_name:
43       label: availabilityzone name
44       hidden: false
45       immutable: false
46       type: string
47       description: availabilityzone name
48       default: nova
49     repl_net_ips:
50       label: repl network ips
51       hidden: false
52       immutable: false
53       type: list
54       description: ips of repl network
55       default:
56       - 107.239.33.57
57       - 107.239.33.58
58       entry_schema:
59         type: string
60     oam_net_name:
61       label: oam network name
62       hidden: false
63       immutable: false
64       type: string
65       description: name of the oam network
66       default: oam_protected_net_0
67     oam_net_ips:
68       label: internet network ips
69       hidden: false
70       immutable: false
71       type: list
72       description: ip of the OAM network
73       default:
74       - 107.250.172.213
75       - 107.250.172.214
76       - 107.250.172.215
77       - 107.250.172.216
78       - 107.250.172.217
79       entry_schema:
80         type: string
81       default: 169.254.1.4
82     ps_server_names:
83       label: PS server names
84       hidden: false
85       immutable: false
86       type: list
87       description: name of the PS instance
88       default:
89       - ZRDM1MOGX01MPS001
90       - ZRDM1MOGX01MPS002
91       - ZRDM1MOGX01MPS003
92       - ZRDM1MOGX01MPS004
93       entry_schema:
94         type: string
95     csb_net_ips:
96       hidden: false
97       immutable: false
98       type: list
99       description: mog_csb_net IP addresses
100       default:
101       - 172.26.0.10
102       - 172.26.0.11
103       - 172.26.0.12
104       - 172.26.0.13
105       - 172.26.0.14
106       - 172.26.0.15
107       - 172.26.0.16
108       - 172.26.0.17
109       - 172.26.0.18
110       - 172.26.0.19
111       - 172.26.0.20
112       entry_schema:
113         type: string
114     ps_flavor_name:
115       label: PS flavor name
116       hidden: false
117       immutable: false
118       type: string
119       description: flavor name of PS instance
120       default: m3.xlarge
121     ps_image_name:
122       label: PS image name
123       hidden: false
124       immutable: false
125       type: string
126       description: PS image name
127       default: MOG_BASE_8.0
128     repl_net_name:
129       label: Replication network name
130       hidden: false
131       immutable: false
132       type: string
133       description: name of the replication network
134       default: cor_direct_net_0
135   node_templates:
136     cm01_port_1:
137       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
138       properties:
139         fixed_ips:
140         - ip_address:
141             get_input:
142             - oam_net_ips
143             - 4
144         allowed_address_pairs:
145           get_input:
146           - interface_list
147           - 2
148           - allowed_address_pairs
149         mac_address:
150           get_input: ncb1_internal1_mac_address
151       requirements:
152       - binding:
153           capability: tosca.capabilities.network.Bindable
154           node: server_cm01
155           relationship: tosca.relationships.network.BindsTo
156     sm01_port_1:
157       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
158       properties:
159         fixed_ips:
160         - ip_address:
161             get_input:
162             - oam_net_ips
163             - 4
164         allowed_address_pairs:
165           get_input:
166           - interface_list
167           - 2
168           - allowed_address_pairs
169         mac_address:
170           get_input: ncb1_internal1_mac_address
171       requirements:
172       - link:
173           capability: tosca.capabilities.network.Linkable
174           node: csb_net
175           relationship: tosca.relationships.network.LinksTo
176       - binding:
177           capability: tosca.capabilities.network.Bindable
178           node: server_sm02
179           relationship: tosca.relationships.network.BindsTo
180     server_ps01:
181       type: org.openecomp.resource.vfc.nodes.heat.ps_server
182       properties:
183         flavor:
184           get_input: ps_flavor_name
185         availability_zone:
186           get_input: availabilityzone_name
187         image:
188           get_input: ps_image_name
189         user_data_format: RAW
190         name:
191           get_input:
192           - ps_server_names
193           - 3
194     server_ps02:
195       type: org.openecomp.resource.vfc.nodes.heat.ps_server
196       properties:
197         flavor:
198           get_input: ps_flavor_name
199         availability_zone:
200           get_input: availabilityzone_name
201         image:
202           get_input: ps_image_name
203         user_data_format: RAW
204         name:
205           get_input:
206           - ps_server_names
207           - 2