968fffcdfcb6659becec2ab837743f461ea36973
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / subinterface / vlantagging / pattern1c2 / differentNodesConnectedOut / in / main.yml
1 heat_template_version: 2018-02-01
2
3 description: heat template that creates MOG stack
4
5 parameters:
6   jsa_net_name:
7     type: string
8     description: network name of jsa log network
9   pd_server_names:
10     type: comma_delimited_list
11     label: PD server names
12     description: name of the PD instance
13   pd_image_name:
14     type: string
15     label: image name
16     description: PD image name
17   pd_flavor_name:
18     type: string
19     label: PD flavor name
20     description: flavor name of PD instance
21   oam_server_names:
22     type: comma_delimited_list
23     label: OAM server names
24     description: name of the OAM instance
25   oam_image_name:
26     type: string
27     label: image name
28     description: OAM image name
29   oam_flavor_name:
30     type: string
31     label: OAM flavor name
32     description: flavor name of OAM instance
33   sm_server_names:
34     type: comma_delimited_list
35     label: SM server names
36     description: name of the SM instance
37   sm_image_name:
38     type: string
39     label: image name
40     description: SM image name
41   sm_flavor_name:
42     type: string
43     label: SM flavor name
44     description: flavor name of SM instance
45   ps_server_names:
46     type: comma_delimited_list
47     label: PS server names
48     description: name of the PS instance
49   ps_image_name:
50     type: string
51     label: PS image name
52     description: PS image name
53   ps_flavor_name:
54     type: string
55     label: PS flavor name
56     description: flavor name of PS instance
57   cm_server_names:
58     type: comma_delimited_list
59     label: CM server names
60     description: name of the CM instance
61   cm_image_name:
62     type: string
63     label: image name
64     description: CM image name
65   cm_flavor_name:
66     type: string
67     label: CM flavor name
68     description: flavor name of CM instance
69   availabilityzone_name:
70     type: string
71     label: availabilityzone name
72     description: availabilityzone name
73   oam_net_name:
74     type: string
75     label: oam network name
76     description: name of the oam network
77   oam_net_ips:
78     type: comma_delimited_list
79     label: internet network ips
80     description: ip of the OAM network
81   sl_net_name:
82     type: string
83     label: silver lining network name
84     description: id of the sl network
85   sl_net_ips:
86     type: comma_delimited_list
87     label: silver lining network ips
88     description: ips of the sl network
89   sl_net_floating_ip:
90     type: string
91     label: mog sl net virtual ip
92     description: mog sl net virtual ip
93   repl_net_name:
94     type: string
95     label: Replication network name
96     description: name of the replication network
97   repl_net_ips:
98     type: comma_delimited_list
99     label: repl network ips
100     description: ips of repl network
101   rx_net_name:
102     type: string
103     label: Rx network name
104     description: Rx network name
105   rx_net_ips:
106     type: comma_delimited_list
107     label: Rx network ips
108     description: Rx network ips
109   rx_net_floating_ip:
110     type: string
111     label: mog rx net virtual ip
112     description: mog rx net virtual ip
113   ran_net_name:
114     type: string
115     label: RAN network name
116     description: RAN network name
117   ran_net_ips:
118     type: comma_delimited_list
119     label: RAN network ips
120     description: RAN network ip
121   ran_net_floating_ip:
122     type: string
123     label: mog ran net virtual ip
124     description: mog ran net virtual ip
125   csb_net_name:
126     type: string
127     label: csb internal network name
128     description: csb internal network name
129   csb_net_start:
130     type: string
131     label: csb internal start
132     description: csb internal start
133   csb_net_end:
134     type: string
135     label: csb internal end
136     description: csb internal end
137   csb_net_cidr:
138     type: string
139     label: csb ineternal cidr
140     description: csb internal cidr
141   csb_net_netmask:
142     type: string
143     description: CSB internal network subnet mask
144   csb_net_ips:
145     type: comma_delimited_list
146     description: mog_csb_net IP addresses
147   dummy_net_name_0:
148     type: string
149     label: csb internal network name
150     description: csb internal network name
151   dummy_net_start_0:
152     type: string
153     label: csb internal start
154     description: csb internal start
155   dummy_net_end_0:
156     type: string
157     label: csb internal end
158     description: csb internal end
159   dummy_net_cidr_0:
160     type: string
161     label: csb ineternal cidr
162     description: csb internal cidr
163   dummy_net_netmask_0:
164     type: string
165     description: CSB internal network subnet mask
166   dummy_net_name_1:
167     type: string
168     label: csb internal network name
169     description: csb internal network name
170
171 resources:
172   server_pd_01:
173     type: OS::Nova::Server
174     properties:
175       name: {get_param: [pd_server_names, 0]}
176       image: {get_param: pd_image_name}
177       flavor: {get_param: pd_flavor_name}
178       availability_zone: {get_param: availabilityzone_name}
179       networks:
180         - port: {get_resource: pd01_port_0}
181       user_data_format:  RAW
182
183   pd01_port_0:
184     type: OS::Neutron::Port
185     properties:
186       network: {get_param: oam_net_name}
187
188   server_pd_02:
189     type: OS::Nova::Server
190     properties:
191       name: {get_param: [pd_server_names, 1]}
192       image: {get_param: pd_image_name}
193       flavor: {get_param: pd_flavor_name}
194       availability_zone: {get_param: availabilityzone_name}
195       networks:
196         - port: {get_resource: pd01_port_1}
197       user_data_format:  RAW
198
199   pd01_port_1:
200     type: OS::Neutron::Port
201     properties:
202       network: {get_param: oam_net_name}
203
204   test_resourceGroup:
205     type: OS::Heat::ResourceGroup
206     depends_on: test_net2
207     properties:
208       count: 9
209       resource_def:
210         type: nested.yml
211         properties:
212           p1: { get_resource: pd01_port_0}
213           net1: { get_resource: test_net1}
214
215   test_resourceGroup2:
216     type: OS::Heat::ResourceGroup
217     properties:
218       count: 9
219       resource_def:
220         type: nested.yml
221         properties:
222           p1: { get_resource: pd01_port_1}
223           net1: { get_resource: test_net1}
224           
225   test_net1:
226     type: OS::Neutron::Net
227     properties:
228       name: {get_param: jsa_net_name}
229       shared: True
230
231   test_net2:
232     type: OS::Neutron::Net
233     properties:
234       name: {get_param: jsa_net_name}
235       shared: True