[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 / one_instance_for_two_types / 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         security_groups:
142         - mog_security_group
143         fixed_ips:
144         - ip_address:
145             get_input:
146             - oam_net_ips
147             - 4
148         network:
149           get_input: oam_net_name
150       requirements:
151       - binding:
152           capability: tosca.capabilities.network.Bindable
153           node: server_cm01
154           relationship: tosca.relationships.network.BindsTo
155     sm01_port_1:
156       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
157       properties:
158         security_groups:
159         - mog_security_group
160         network: csb_net
161       requirements:
162       - link:
163           capability: tosca.capabilities.network.Linkable
164           node: csb_net
165           relationship: tosca.relationships.network.LinksTo
166       - binding:
167           capability: tosca.capabilities.network.Bindable
168           node: server_sm02
169           relationship: tosca.relationships.network.BindsTo
170     server_ps01:
171       type: org.openecomp.resource.vfc.nodes.heat.ps_server
172       properties:
173         flavor:
174           get_input: ps_flavor_name
175         availability_zone:
176           get_input: availabilityzone_name
177         image:
178           get_input: ps_image_name
179         user_data_format: RAW
180         name:
181           get_input:
182           - ps_server_names
183           - 3
184     server_ps02:
185       type: org.openecomp.resource.vfc.nodes.heat.cmaui
186       properties:
187         flavor:
188           get_input: ps_flavor_name
189         availability_zone:
190           get_input: availabilityzone_name
191         image:
192           get_input: ps_image_name
193         user_data_format: RAW
194         name:
195           get_input:
196           - ps_server_names
197           - 3