[sdc] update code of sdc
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / consolidation / translatedfiles / computeportconsolidation / one_image_missing / 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
152     sm01_port_1:
153       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
154       properties:
155         fixed_ips:
156         - ip_address:
157             get_input:
158             - oam_net_ips
159             - 4
160         allowed_address_pairs:
161           get_input:
162           - interface_list
163           - 2
164           - allowed_address_pairs
165         mac_address:
166           get_input: ncb1_internal1_mac_address
167
168     server_pd01:
169       type: org.openecomp.resource.vfc.nodes.heat.pd_server
170       properties:
171         flavor:
172           get_input: ps_flavor_name
173         image:
174           get_attr: [a, b, c, get_input: {get_input: ps_flavor_name}, d, e]
175
176     server_pd02:
177       type: org.openecomp.resource.vfc.nodes.heat.pd_server
178       properties:
179         flavor:
180           get_input: ps_flavor_name
181         image:
182           get_attr: [a, b, c, get_input: {get_input: ps_flavor_name}, d, e]
183
184     server_pd03:
185       type: org.openecomp.resource.vfc.nodes.heat.pd_server
186       properties:
187         flavor:
188           get_input: ps_flavor_name