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