blob: 9dc4a4208fb0e77598f1a2f593228faa184cf228 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001heat_template_version: 2013-05-23
2
3description: >
4 HOT template that creates internal networks, load balancers and servers for vMMSC.
5
6parameters:
7 oam_net_name:
8 type: string
9 description: UID of OAM network
10 oam_network_netmask:
11 type: string
12 label: oam network netmask
13 description: oam network gateway
14 oam_network_gateway:
15 type: string
16 label: oam network gateway
17 description: oam network gateway
18 oam_network_route_1:
19 type: string
20 label: oam network route 1
21 description: oam network route 1
22 oam_network_route_2:
23 type: string
24 label: oam network route 2
25 description: oam network route 2
26 external_dns:
27 type: string
28 label: dns server
29 description: dns server for MMSC
30 external_ntp:
31 type: string
32 label: ntp server
33 description: ntp server for MMSC
34 lb1_oam_net_ip:
35 type: string
36 label: management network ip for mmsc
37 description: the ip of the management network for mmsc
38 lb2_oam_net_ip:
39 type: string
40 label: management network ip for mmsc
41 description: the ip of the management network for mmsc
42 dmz_protected_net:
43 type: string
44 description: UID of dmz_protected network
45 dmz_protected_net_local_ip1:
46 type: string
47 label: mmsc dmz protected network local ip1
48 description: the local ip1 of the mmsc dmz protected network
49 dmz_protected_net_local_ip2:
50 type: string
51 label: mmsc dmz protected network local ip2
52 description: the local ip2 of the mmsc dmz protected network
53 dmz_protected_net_floating_ip:
54 type: string
55 label: mmsc dmz protected floating ip
56 description: mmsc dmz direct floating ip
57 cor_direct_net:
58 type: string
59 label: cor direct net UID
60 description: cor direct net
61 cor_direct_net_local_ip1:
62 type: string
63 label: mmsc cor direct network local ip1
64 description: the local ip1 of the mmsc cor direct network
65 cor_direct_net_local_ip2:
66 type: string
67 label: mmsc cor direct network local ip2
68 description: the local ip2 of the mmsc cor direct network
69 cor_direct_net_floating_ip:
70 type: string
71 label: mmsc cor direct floating ip
72 description: mmsc cor direct floating ip
73 mms_traffic_net_name:
74 type: string
75 description: Name of MMS traffic network
76 mms_traffic_net_cidr:
77 type: string
78 description: MMS traffic network address (CIDR notation)
79 mms_traffic_netmask:
80 type: string
81 description: MMS traffic network subnet mask
82 mms_traffic_net_gateway:
83 type: string
84 description: MMS traffic network gateway address
85 mms_traffic_start:
86 type: string
87 label: mmsc traffic start IP
88 description: mmsc traffic start IP
89 mms_traffic_end:
90 type: string
91 label: mmsc traffic end IP
92 description: mmsc traffic end IP
93 mms_traffic_net_cidr:
94 type: string
95 label: mmsc traffic cidr
96 description: mmsc traffic cidr
97 mms_traffic_net_local_ip1:
98 type: string
99 label: mmsc traffic network local ip1
100 description: the local ip1 of the mmsc traffic network
101 mms_traffic_net_local_ip2:
102 type: string
103 label: mmsc traffic network local ip2
104 description: the local ip2 of the mmsc traffic network
105 mms_traffic_net_floating_ip:
106 type: string
107 label: mmsc traffic floating ip
108 description: mmsc traffic floating ip
109 nems_internal_name:
110 type: string
111 label: nems internal network name
112 description: nems internal network name
113 nems_internal_start:
114 type: string
115 label: nems internal start
116 description: nems internal start
117 nems_internal_end:
118 type: string
119 label: nems internal end
120 description: nems internal end
121 nems_internal_cidr:
122 type: string
123 label: nems ineternal cidr
124 description: nems internal cidr
125 nems_internal_netmask:
126 type: string
127 description: NEMS internal network subnet mask
128 nems_internal_gateway:
129 type: string
130 label: nems internal gw
131 description: nems internal gw
132 nems_traffic_name:
133 type: string
134 label: nems traffic name
135 description: nems traffic name
136 nems_traffic_start:
137 type: string
138 label: nems traffic start
139 description: nems traffic start
140 nems_traffic_end:
141 type: string
142 label: nems traffic end
143 description: nems traffic end
144 nems_traffic_cidr:
145 type: string
146 label: nems traffic cidr
147 description: nems traffic cidr
148 nems_traffic_netmask:
149 type: string
150 description: NEMS traffic network subnet mask
151 nems_traffic_gateway:
152 type: string
153 description: NEMS traffic network gateway
154 nems_traffic_net_local_ip1:
155 type: string
156 label: nems traffic network local ip1
157 description: the local ip1 of the nems traffic network
158 nems_traffic_net_local_ip2:
159 type: string
160 label: nems traffic network local ip2
161 description: the local ip2 of the nems traffic network
162 nems_traffic_net_floating_ip:
163 type: string
164 label: nems traffic floating ip
165 description: nems traffic floating ip
166 nems_user_web_name:
167 type: string
168 label: nems user web name
169 description: nems user web name
170 nems_user_web_start:
171 type: string
172 label: nems user web start
173 description: nems user web end
174 nems_user_web_end:
175 type: string
176 label: nems user web end
177 description: nems user web end
178 nems_user_web_cidr:
179 type: string
180 label: nems user web cidr
181 description: nems user web cidr
182 nems_user_web_netmask:
183 type: string
184 description: NEMS user web network subnet mask
185 nems_user_web_gateway:
186 type: string
187 description: NEMS user web network gateway
188 nems_user_web_net_local_ip1:
189 type: string
190 label: nems user web network local ip1
191 description: the local ip1 of the nems user web network
192 nems_user_web_net_local_ip2:
193 type: string
194 label: nems user web network local ip2
195 description: the local ip2 of the nems user web network
196 nems_user_web_net_floating_ip:
197 type: string
198 label: nems user web floating ip
199 description: nems user web floating ip
200 nems_imap_name:
201 type: string
202 label: nems imap name
203 description: nems imap name
204 nems_imap_netmask:
205 type: string
206 label: nems imap subnet mask
207 description: nems imap subnet mask
208 nems_imap_start:
209 type: string
210 label: nems imap start
211 description: nems imap start
212 nems_imap_end:
213 type: string
214 label: nems imap end
215 description: nems imap end
216 nems_imap_cidr:
217 type: string
218 label: nems imap cidr
219 description: nems imap cidr
220 nems_imap_gateway:
221 type: string
222 label: nems imap gateway
223 description: nems imap gateway
224 eca_traffic_name:
225 type: string
226 label: eca traffic name
227 description: eca traffic name
228 eca_traffic_start:
229 type: string
230 label: eca traffic start
231 description: eca traffic start
232 eca_traffic_end:
233 type: string
234 label: eca traffic end
235 description: eca traffic end
236 eca_traffic_cidr:
237 type: string
238 label: eca traffic cidr
239 description: eca traffic cidr
240 eca_traffic_netmask:
241 type: string
242 description: ECA traffic network subnet mask
243 eca_traffic_net_local_ip1:
244 type: string
245 label: eca traffic network local ip1
246 description: the local ip1 of the eca traffic network
247 eca_traffic_net_local_ip2:
248 type: string
249 label: eca traffic network local ip2
250 description: the local ip2 of the eca traffic network
251 eca_traffic_net_floating_ip:
252 type: string
253 label: eca traffic floating ip
254 description: eca traffic floating ip
255 eca_mgmt_name:
256 type: string
257 label: eca management name
258 description: eca management name
259 eca_mgmt_start:
260 type: string
261 label: eca management start
262 description: eca management start
263 eca_mgmt_end:
264 type: string
265 label: eca management end
266 description: eca management end
267 eca_mgmt_cidr:
268 type: string
269 label: eca management cidr
270 description: eca management cidr
271 eca_mgmt_netmask:
272 type: string
273 description: ECA mgmt network subnet mask
274 ha_net_name:
275 type: string
276 label: ha_failover network name
277 description: ha_failover network name
278 ha_net_start:
279 type: string
280 label: ha net start
281 description: ha net start
282 ha_net_end:
283 type: string
284 label: ha net end
285 description: ha net end
286 ha_net_cidr:
287 type: string
288 label: ha net cidr
289 description: ha net cidr
290 ha_net_local_ip1:
291 type: string
292 label: ha net network local ip1
293 description: the local ip1 of the ha network
294 ha_net_local_ip2:
295 type: string
296 label: ha net network local ip2
297 description: the local ip2 of the ha network
298 lb1_name:
299 type: string
300 label: MMSC load balancer instance name
301 description: MMSC load balancer instance name
302 lb_image_name:
303 type: string
304 label: MMSC load balancer image name
305 description: MMSC load balancer image name
306 lb_flavor_name:
307 type: string
308 label: Load balancer flavor name
309 description: the flavor name of MMSC load balancer instance
310 lb1_name:
311 type: string
312 label: MMSC load balancer1 instance name
313 description: MMSC load balancer1 instance name
314 lb2_name:
315 type: string
316 label: MMSC load balancer2 instance name
317 description: MMSC load balancer2 instance name
318 availabilityzone_name:
319 type: string
320 label: MMSC availabilityzone name
321 description: MMSC availabilityzone name
322 security_group_name:
323 type: string
324 label: MMSC security group name
325 description: MMSC security group name
326 mmsc_image:
327 type: string
328 description: Image for MMSC server
329 mmsc_flavor:
330 type: string
331 description: Flavor for MMSC server
332# mmsc_cinder_volume_size:
333# type: number
334# label: MMSC Cinder volume size
335# description: the size of the MMSC Cinder volume
336 nems_fe_image:
337 type: string
338 description: Image for NEMS FE server
339 nems_fe_flavor:
340 type: string
341 description: Flavor for NEMS FE server
342 nems_be_image:
343 type: string
344 description: Image for NEMS BE server
345 nems_be_flavor:
346 type: string
347 description: Flavor for NEMS BE server
348 eca_trx_image:
349 type: string
350 description: Image for ECA TRX server
351 eca_trx_flavor:
352 type: string
353 description: Flavor for ECA TRX server
354 eca_oam_image:
355 type: string
356 description: Image for ECA OAM server
357 eca_oam_flavor:
358 type: string
359 description: Flavor for ECA OAM server
360 mmsc1_name:
361 type: string
362 description: MMSC1 server name
363 mmsc1_oam_net_ip:
364 type: string
365 description: OAM_net IP for MMSC1
366 mmsc1_mms_traffic_net_ip:
367 type: string
368 description: mms_traffic_net IP for MMSC1
369 mmsc2_name:
370 type: string
371 description: MMSC2 server name
372 mmsc2_oam_net_ip:
373 type: string
374 description: OAM_net IP for MMSC2
375 mmsc2_mms_traffic_net_ip:
376 type: string
377 description: mms_traffic_net IP for MMSC2
378 mmsc3_name:
379 type: string
380 description: MMSC3 server name
381 mmsc3_oam_net_ip:
382 type: string
383 description: OAM_net IP for MMSC3
384 mmsc3_mms_traffic_net_ip:
385 type: string
386 description: mms_traffic_net IP for MMSC3
387 mmsc4_name:
388 type: string
389 description: MMSC4 server name
390 mmsc4_oam_net_ip:
391 type: string
392 description: OAM_net IP for MMSC4
393 mmsc4_mms_traffic_net_ip:
394 type: string
395 description: mms_traffic_net IP for MMSC4
396 mmsc5_name:
397 type: string
398 description: MMSC5 server name
399 mmsc5_oam_net_ip:
400 type: string
401 description: OAM_net IP for MMSC5
402 mmsc5_mms_traffic_net_ip:
403 type: string
404 description: mms_traffic_net IP for MMSC5
405 nems_fe1_name:
406 type: string
407 description: NEMS_FE1 server name
408 nems_fe1_node_role:
409 type: string
410 label: nems node role
411 description: nems node role
412 nems_fe1_oam_net_ip:
413 type: string
414 description: OAM_net IP for NEMS_FE1
415 nems_fe1_nems_traffic_net_ip:
416 type: string
417 description: nems_traffic_net IP for NEMS_FE1
418 nems_fe1_nems_user_web_net_ip:
419 type: string
420 description: nems_web_user_net IP for NEMS_FE1
421 nems_fe1_nems_internal_net_ip:
422 type: string
423 description: nems_internal_net IP for NEMS_FE1
424 nems_fe1_nems_imap_net_ip:
425 type: string
426 description: nems_imap_net IP for NEMS_FE1
427 nems_fe2_name:
428 type: string
429 description: NEMS_FE2 server name
430 nems_fe2_node_role:
431 type: string
432 label: nems node role
433 description: nems node role
434 nems_fe2_oam_net_ip:
435 type: string
436 description: OAM_net IP for NEMS_FE2
437 nems_fe2_nems_traffic_net_ip:
438 type: string
439 description: nems_traffic_net IP for NEMS_FE2
440 nems_fe2_nems_user_web_net_ip:
441 type: string
442 description: nems_web_user_net IP for NEMS_FE2
443 nems_fe2_nems_internal_net_ip:
444 type: string
445 description: nems_internal_net IP for NEMS_FE2
446 nems_fe2_nems_internal_net_ip:
447 type: string
448 description: nems_internal_net IP for NEMS_FE2
449 nems_fe2_nems_imap_net_ip:
450 type: string
451 description: nems_imap_net IP for NEMS_FE2
452 nems_be1_name:
453 type: string
454 description: NEMS_BE2 server name
455 nems_be1_node_role:
456 type: string
457 label: nems node role
458 description: nems node role
459 nems_be1_oam_net_ip:
460 type: string
461 description: OAM_net IP for NEMS_BE1
462 nems_be1_nems_internal_net_ip:
463 type: string
464 description: nems_internal_net IP for NEMS_BE1
465 nems_be1_nems_imap_net_ip:
466 type: string
467 description: nems_imap_net IP for NEMS_BE1
468 nems_be2_name:
469 type: string
470 description: NEMS_BE2 server name
471 nems_be2_node_role:
472 type: string
473 label: nems node role
474 description: nems node role
475 nems_be2_oam_net_ip:
476 type: string
477 description: OAM_net IP for NEMS_BE2
478 nems_be2_nems_internal_net_ip:
479 type: string
480 description: nems_internal_net IP for NEMS_BE2
481 nems_be2_nems_imap_net_ip:
482 type: string
483 description: nems_imap_net IP for NEMS_BE2
484 eca_oam1_name:
485 type: string
486 description: ECA_OAM1 server name
487 eca_oam1_oam_net_ip:
488 type: string
489 description: OAM_net IP for ECA_OAM1
490 eca_oam1_eca_mgmt_net_ip:
491 type: string
492 description: eca_mgmt_net IP for ECA_OAM1
493 eca_oam2_name:
494 type: string
495 description: ECA_OAM2 server name
496 eca_oam2_oam_net_ip:
497 type: string
498 description: OAM_net IP for ECA_OAM2
499 eca_oam2_eca_mgmt_net_ip:
500 type: string
501 description: eca_mgmt_net IP for ECA_OAM2
502 eca_trx1_name:
503 type: string
504 description: ECA_TRX1 server name
505 eca_trx1_oam_net_ip:
506 type: string
507 description: OAM_net IP for ECA_TRX1
508 eca_trx1_eca_mgmt_net_ip:
509 type: string
510 description: eca_mgmt_net IP for ECA_TRX1
511 eca_trx1_eca_traffic_net_ip:
512 type: string
513 description: eca_traffic_net IP for ECA_TRX1
514
515resources:
516 mms_security_group:
517 type: OS::Neutron::SecurityGroup
518 properties:
519 description: mmsc security group
520 name: {get_param: security_group_name}
521 rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
522 {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
523 {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
524 {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
525 {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
526 {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
527 ]
528
529 mms_traffic_net:
530 type: OS::Contrail::VirtualNetwork
531 properties:
532 name: { get_param: mms_traffic_net_name }
533
534 mms_traffic_ip_subnet:
535 type: OS::Neutron::Subnet
536 properties:
537 name: {get_param: mms_traffic_net_name}
538 network_id: { get_resource: mms_traffic_net }
539 cidr: { get_param: mms_traffic_net_cidr }
540 allocation_pools: [{"start": {get_param: mms_traffic_start}, "end": {get_param: mms_traffic_end}}]
541 gateway_ip: { get_param: mms_traffic_net_gateway }
542 enable_dhcp: false
543
544 nems_internal_net:
545 type: OS::Contrail::VirtualNetwork
546 properties:
547 name: {get_param: nems_internal_name}
548
549 nems_internal_network_ip_subnet:
550 type: OS::Neutron::Subnet
551 properties:
552 name: {get_param: nems_internal_name}
553 allocation_pools: [{"start": {get_param: nems_internal_start}, "end": {get_param: nems_internal_end}}]
554 cidr: {get_param: nems_internal_cidr}
555 enable_dhcp: false
556 gateway_ip: null
557 network_id: {get_resource: nems_internal_net}
558
559 nems_traffic_net:
560 type: OS::Contrail::VirtualNetwork
561 properties:
562 name: {get_param: nems_traffic_name}
563
564 nems_traffic_network_ip_subnet:
565 type: OS::Neutron::Subnet
566 properties:
567 name: {get_param: nems_traffic_name}
568 allocation_pools: [{"start": {get_param: nems_traffic_start}, "end": {get_param: nems_traffic_end}}]
569 cidr: {get_param: nems_traffic_cidr}
570 enable_dhcp: false
571 gateway_ip: null
572 network_id: {get_resource: nems_traffic_net}
573
574 nems_user_web_net:
575 type: OS::Contrail::VirtualNetwork
576 properties:
577 name: {get_param: nems_user_web_name}
578
579 nems_user_web_network_ip_subnet:
580 type: OS::Neutron::Subnet
581 properties:
582 name: {get_param: nems_user_web_name}
583 allocation_pools: [{"start": {get_param: nems_user_web_start}, "end": {get_param: nems_user_web_end}}]
584 cidr: {get_param: nems_user_web_cidr}
585 enable_dhcp: false
586 gateway_ip: null
587 network_id: {get_resource: nems_user_web_net}
588
589 nems_imap_net:
590 type: OS::Contrail::VirtualNetwork
591 properties:
592 name: {get_param: nems_imap_name}
593
594 nems_imap_network_ip_subnet:
595 type: OS::Neutron::Subnet
596 properties:
597 name: {get_param: nems_imap_name}
598 allocation_pools: [{"start": {get_param: nems_imap_start}, "end": {get_param: nems_imap_end}}]
599 cidr: {get_param: nems_imap_cidr}
600 enable_dhcp: false
601 gateway_ip: null
602 network_id: {get_resource: nems_imap_net}
603
604 eca_traffic_net:
605 type: OS::Contrail::VirtualNetwork
606 properties:
607 name: {get_param: eca_traffic_name}
608
609 eca_traffic_ip_subnet:
610 type: OS::Neutron::Subnet
611 properties:
612 name: {get_param: eca_traffic_name}
613 allocation_pools: [{"start": {get_param: eca_traffic_start}, "end": {get_param: eca_traffic_end}}]
614 cidr: {get_param: eca_traffic_cidr}
615 enable_dhcp: false
616 gateway_ip: null
617 network_id: {get_resource: eca_traffic_net}
618
619 ha_net:
620 type: OS::Contrail::VirtualNetwork
621 properties:
622 name: {get_param: ha_net_name}
623
624 ha_net_ip_subnet:
625 type: OS::Neutron::Subnet
626 properties:
627 name: {get_param: ha_net_name}
628 allocation_pools: [{"start": {get_param: ha_net_start}, "end": {get_param: ha_net_end}}]
629 cidr: {get_param: ha_net_cidr}
630 enable_dhcp: false
631 gateway_ip: null
632 network_id: {get_resource: ha_net}
633
634 eca_mgmt_net:
635 type: OS::Contrail::VirtualNetwork
636 properties:
637 name: {get_param: eca_mgmt_name}
638
639 eca_mgmt_network_ip_subnet:
640 type: OS::Neutron::Subnet
641 properties:
642 name: {get_param: eca_mgmt_name}
643 allocation_pools: [{"start": {get_param: eca_mgmt_start}, "end": {get_param: eca_mgmt_end}}]
644 cidr: {get_param: eca_mgmt_cidr}
645 enable_dhcp: false
646 gateway_ip: null
647 network_id: {get_resource: eca_mgmt_net}
648
649 lb1_instance:
650 type: OS::Nova::Server
651 properties:
652 name: {get_param: lb1_name}
653 image: {get_param: lb_image_name}
654 flavor: {get_param: lb_flavor_name}
655 availability_zone: {get_param: availabilityzone_name}
656 networks:
657 - port: {get_resource: lb1_mgmt_port}
658 - port: {get_resource: lb1_dmz_protected_port}
659 - port: {get_resource: lb1_cor_direct_port}
660 - port: {get_resource: lb1_mms_traffic_port}
661 - port: {get_resource: lb1_nems_traffic_port}
662 - port: {get_resource: lb1_nems_user_web_port}
663 - port: {get_resource: lb1_eca_traffic_port}
664 - port: {get_resource: lb1_ha_net_port}
665
666 lb1_mgmt_port:
667 type: OS::Neutron::Port
668 properties:
669 network_id: {get_param: oam_net_name}
670 fixed_ips: [{"ip_address": {get_param: lb1_oam_net_ip}}]
671 security_groups: [{get_resource: mms_security_group}]
672
673 lb1_mms_traffic_port:
674 type: OS::Neutron::Port
675 properties:
676 network_id: {get_resource: mms_traffic_net}
677 fixed_ips: [{"ip_address": {get_param: mms_traffic_net_local_ip1}}]
678 allowed_address_pairs: [{"ip_address": {get_param: mms_traffic_net_floating_ip} }]
679 security_groups: [{get_resource: mms_security_group}]
680
681 lb1_dmz_protected_port:
682 type: OS::Neutron::Port
683 properties:
684 network_id: {get_param: dmz_protected_net}
685 fixed_ips: [{"ip_address": {get_param: dmz_protected_net_local_ip1}}]
686 allowed_address_pairs: [{"ip_address": {get_param: dmz_protected_net_floating_ip} }]
687 security_groups: [{get_resource: mms_security_group}]
688
689 lb1_cor_direct_port:
690 type: OS::Neutron::Port
691 properties:
692 network_id: {get_param: cor_direct_net}
693 fixed_ips: [{"ip_address": {get_param: cor_direct_net_local_ip1}}]
694 allowed_address_pairs: [{"ip_address": {get_param: cor_direct_net_floating_ip} }]
695 security_groups: [{get_resource: mms_security_group}]
696
697 lb1_nems_traffic_port:
698 type: OS::Neutron::Port
699 properties:
700 network_id: {get_resource: nems_traffic_net}
701 fixed_ips: [{"ip_address": {get_param: nems_traffic_net_local_ip1}}]
702 allowed_address_pairs: [{"ip_address": {get_param: nems_traffic_net_floating_ip} }]
703 security_groups: [{get_resource: mms_security_group}]
704
705 lb1_nems_user_web_port:
706 type: OS::Neutron::Port
707 properties:
708 network_id: {get_resource: nems_user_web_net}
709 fixed_ips: [{"ip_address": {get_param: nems_user_web_net_local_ip1}}]
710 allowed_address_pairs: [{"ip_address": {get_param: nems_user_web_net_floating_ip} }]
711 security_groups: [{get_resource: mms_security_group}]
712
713 lb1_ha_net_port:
714 type: OS::Neutron::Port
715 properties:
716 network_id: {get_resource: ha_net}
717 fixed_ips: [{"ip_address": {get_param: ha_net_local_ip1}}]
718
719 lb1_eca_traffic_port:
720 type: OS::Neutron::Port
721 properties:
722 network_id: {get_resource: eca_traffic_net}
723 fixed_ips: [{"ip_address": {get_param: eca_traffic_net_local_ip1}}]
724 allowed_address_pairs: [{"ip_address": {get_param: eca_traffic_net_floating_ip} }]
725 security_groups: [{get_resource: mms_security_group}]
726
727 lb2_instance:
728 type: OS::Nova::Server
729 properties:
730 name: {get_param: lb2_name}
731 image: {get_param: lb_image_name}
732 flavor: {get_param: lb_flavor_name}
733 availability_zone: {get_param: availabilityzone_name}
734 networks:
735 - port: {get_resource: lb2_mgmt_port}
736 - port: {get_resource: lb2_dmz_protected_port}
737 - port: {get_resource: lb2_cor_direct_port}
738 - port: {get_resource: lb2_mms_traffic_port}
739 - port: {get_resource: lb2_nems_traffic_port}
740 - port: {get_resource: lb2_nems_user_web_port}
741 - port: {get_resource: lb2_eca_traffic_port}
742 - port: {get_resource: lb2_ha_net_port}
743
744 lb2_mgmt_port:
745 type: OS::Neutron::Port
746 properties:
747 network_id: {get_param: oam_net_name}
748 fixed_ips: [{"ip_address": {get_param: lb2_oam_net_ip}}]
749 security_groups: [{get_resource: mms_security_group}]
750
751 lb2_mms_traffic_port:
752 type: OS::Neutron::Port
753 properties:
754 network_id: {get_resource: mms_traffic_net}
755 fixed_ips: [{"ip_address": {get_param: mms_traffic_net_local_ip2}}]
756 allowed_address_pairs: [{"ip_address": {get_param: mms_traffic_net_floating_ip} }]
757 security_groups: [{get_resource: mms_security_group}]
758
759 lb2_dmz_protected_port:
760 type: OS::Neutron::Port
761 properties:
762 network_id: {get_param: dmz_protected_net}
763 fixed_ips: [{"ip_address": {get_param: dmz_protected_net_local_ip2}}]
764 allowed_address_pairs: [{"ip_address": {get_param: dmz_protected_net_floating_ip} }]
765 security_groups: [{get_resource: mms_security_group}]
766
767 lb2_cor_direct_port:
768 type: OS::Neutron::Port
769 properties:
770 network_id: {get_param: cor_direct_net}
771 fixed_ips: [{"ip_address": {get_param: cor_direct_net_local_ip2}}]
772 allowed_address_pairs: [{"ip_address": {get_param: cor_direct_net_floating_ip} }]
773 security_groups: [{get_resource: mms_security_group}]
774
775 lb2_nems_traffic_port:
776 type: OS::Neutron::Port
777 properties:
778 network_id: {get_resource: nems_traffic_net}
779 fixed_ips: [{"ip_address": {get_param: nems_traffic_net_local_ip2}}]
780 allowed_address_pairs: [{"ip_address": {get_param: nems_traffic_net_floating_ip} }]
781 security_groups: [{get_resource: mms_security_group}]
782
783 lb2_nems_user_web_port:
784 type: OS::Neutron::Port
785 properties:
786 network_id: {get_resource: nems_user_web_net}
787 fixed_ips: [{"ip_address": {get_param: nems_user_web_net_local_ip2}}]
788 allowed_address_pairs: [{"ip_address": {get_param: nems_user_web_net_floating_ip} }]
789 security_groups: [{get_resource: mms_security_group}]
790
791 lb2_ha_net_port:
792 type: OS::Neutron::Port
793 properties:
794 network_id: {get_resource: ha_net}
795 fixed_ips: [{"ip_address": {get_param: ha_net_local_ip2}}]
796
797 lb2_eca_traffic_port:
798 type: OS::Neutron::Port
799 properties:
800 network_id: {get_resource: eca_traffic_net}
801 fixed_ips: [{"ip_address": {get_param: eca_traffic_net_local_ip2}}]
802 allowed_address_pairs: [{"ip_address": {get_param: eca_traffic_net_floating_ip} }]
803 security_groups: [{get_resource: mms_security_group}]
804
805 server_mmsc1:
806 type: OS::Nova::Server
807 properties:
808 name: { get_param: mmsc1_name }
809 image: { get_param: mmsc_image }
810 availability_zone: { get_param: availabilityzone_name }
811 flavor: { get_param: mmsc_flavor }
812 networks:
813 - port: { get_resource: mmsc1_port_0 }
814 - port: { get_resource: mmsc1_port_1 }
815 user_data:
816 str_replace:
817 template: |
818 mmsc.mgmt.ip=${mmsc.mgmt.ip}
819 mmsc.mgmt.netmask=${mmsc.mgmt.netmask}
820 mmsc.mgmt.gateway=${mmsc.mgmt.gateway}
821 mmsc.traffic.ip=${mmsc.traffic.ip}
822 mmsc.traffic.netmask=${mmsc.traffic.netmask}
823 mmsc.traffic.gateway=${mmsc.traffic.gateway}
824 mmsc.mgmt.route.1=${mmsc.mgmt.route.1}
825 mmsc.mgmt.route.2=${mmsc.mgmt.route.2}
826 mmsc.external.dns=${mmsc.external.dns}
827 mmsc.external.ntp=${mmsc.external.ntp}
828 params:
829 ${mmsc.mgmt.ip}: {get_param: mmsc1_oam_net_ip}
830 ${mmsc.mgmt.netmask}: {get_param: oam_network_netmask}
831 ${mmsc.mgmt.gateway}: {get_param: oam_network_gateway}
832 ${mmsc.traffic.ip}: {get_param: mmsc1_mms_traffic_net_ip}
833 ${mmsc.traffic.netmask}: {get_param: mms_traffic_netmask}
834 ${mmsc.traffic.gateway}: {get_param: mms_traffic_net_gateway}
835 ${mmsc.mgmt.route.1}: {get_param: oam_network_route_1}
836 ${mmsc.mgmt.route.2}: {get_param: oam_network_route_2}
837 ${mmsc.external.dns}: {get_param: external_dns}
838 ${mmsc.external.ntp}: {get_param: external_ntp}
839 user_data_format: RAW
840# mmsc1_volume:
841# type: OS::Cinder::Volume
842# properties:
843# size: {get_param: mmsc_cinder_volume_size}
844
845# mmsc1_volume_attachment:
846# type: OS::Cinder::VolumeAttachment
847# properties:
848# volume_id: {get_resource: mmsc1_volume}
849# instance_uuid: {get_resource: server_mmsc1}
850
851 mmsc1_port_0:
852 type: OS::Neutron::Port
853 properties:
854 network_id: { get_param: oam_net_name }
855 fixed_ips: [
856 "ip_address": { get_param: mmsc1_oam_net_ip }
857 ]
858
859 mmsc1_port_1:
860 type: OS::Neutron::Port
861 properties:
862 network_id: { get_resource: mms_traffic_net }
863 fixed_ips: [
864 "ip_address": { get_param: mmsc1_mms_traffic_net_ip }
865 ]
866
867 server_mmsc2:
868 type: OS::Nova::Server
869 properties:
870 name: { get_param: mmsc2_name }
871 image: { get_param: mmsc_image }
872 availability_zone: { get_param: availabilityzone_name }
873 flavor: { get_param: mmsc_flavor }
874 networks:
875 - port: { get_resource: mmsc2_port_0 }
876 - port: { get_resource: mmsc2_port_1 }
877 user_data:
878 str_replace:
879 template: |
880 mmsc.mgmt.ip=${mmsc.mgmt.ip}
881 mmsc.mgmt.netmask=${mmsc.mgmt.netmask}
882 mmsc.mgmt.gateway=${mmsc.mgmt.gateway}
883 mmsc.traffic.ip=${mmsc.traffic.ip}
884 mmsc.traffic.netmask=${mmsc.traffic.netmask}
885 mmsc.traffic.gateway=${mmsc.traffic.gateway}
886 mmsc.mgmt.route.1=${mmsc.mgmt.route.1}
887 mmsc.mgmt.route.2=${mmsc.mgmt.route.2}
888 mmsc.external.dns=${mmsc.external.dns}
889 mmsc.external.ntp=${mmsc.external.ntp}
890 params:
891 ${mmsc.mgmt.ip}: {get_param: mmsc2_oam_net_ip}
892 ${mmsc.mgmt.netmask}: {get_param: oam_network_netmask}
893 ${mmsc.mgmt.gateway}: {get_param: oam_network_gateway}
894 ${mmsc.traffic.ip}: {get_param: mmsc2_mms_traffic_net_ip}
895 ${mmsc.traffic.netmask}: {get_param: mms_traffic_netmask}
896 ${mmsc.traffic.gateway}: {get_param: mms_traffic_net_gateway}
897 ${mmsc.mgmt.route.1}: {get_param: oam_network_route_1}
898 ${mmsc.mgmt.route.2}: {get_param: oam_network_route_2}
899 ${mmsc.external.dns}: {get_param: external_dns}
900 ${mmsc.external.ntp}: {get_param: external_ntp}
901 user_data_format: RAW
902# mmsc2_volume:
903# type: OS::Cinder::Volume
904# properties:
905# size: {get_param: mmsc_cinder_volume_size}
906
907# mmsc2_volume_attachment:
908# type: OS::Cinder::VolumeAttachment
909# properties:
910# volume_id: {get_resource: mmsc2_volume}
911# instance_uuid: {get_resource: server_mmsc2}
912
913 mmsc2_port_0:
914 type: OS::Neutron::Port
915 properties:
916 network_id: { get_param: oam_net_name }
917 fixed_ips: [
918 "ip_address": { get_param: mmsc2_oam_net_ip }
919 ]
920
921 mmsc2_port_1:
922 type: OS::Neutron::Port
923 properties:
924 network_id: { get_resource: mms_traffic_net }
925 fixed_ips: [
926 "ip_address": { get_param: mmsc2_mms_traffic_net_ip }
927 ]
928
929 server_mmsc3:
930 type: OS::Nova::Server
931 properties:
932 name: { get_param: mmsc3_name }
933 image: { get_param: mmsc_image }
934 availability_zone: { get_param: availabilityzone_name }
935 flavor: { get_param: mmsc_flavor }
936 networks:
937 - port: { get_resource: mmsc3_port_0 }
938 - port: { get_resource: mmsc3_port_1 }
939 user_data:
940 str_replace:
941 template: |
942 mmsc.mgmt.ip=${mmsc.mgmt.ip}
943 mmsc.mgmt.netmask=${mmsc.mgmt.netmask}
944 mmsc.mgmt.gateway=${mmsc.mgmt.gateway}
945 mmsc.traffic.ip=${mmsc.traffic.ip}
946 mmsc.traffic.netmask=${mmsc.traffic.netmask}
947 mmsc.traffic.gateway=${mmsc.traffic.gateway}
948 mmsc.mgmt.route.1=${mmsc.mgmt.route.1}
949 mmsc.mgmt.route.2=${mmsc.mgmt.route.2}
950 mmsc.external.dns=${mmsc.external.dns}
951 mmsc.external.ntp=${mmsc.external.ntp}
952 params:
953 ${mmsc.mgmt.ip}: {get_param: mmsc3_oam_net_ip}
954 ${mmsc.mgmt.netmask}: {get_param: oam_network_netmask}
955 ${mmsc.mgmt.gateway}: {get_param: oam_network_gateway}
956 ${mmsc.traffic.ip}: {get_param: mmsc3_mms_traffic_net_ip}
957 ${mmsc.traffic.netmask}: {get_param: mms_traffic_netmask}
958 ${mmsc.traffic.gateway}: {get_param: mms_traffic_net_gateway}
959 ${mmsc.mgmt.route.1}: {get_param: oam_network_route_1}
960 ${mmsc.mgmt.route.2}: {get_param: oam_network_route_2}
961 ${mmsc.external.dns}: {get_param: external_dns}
962 ${mmsc.external.ntp}: {get_param: external_ntp}
963 user_data_format: RAW
964
965 mmsc3_port_0:
966 type: OS::Neutron::Port
967 properties:
968 network_id: { get_param: oam_net_name }
969 fixed_ips: [
970 "ip_address": { get_param: mmsc3_oam_net_ip }
971 ]
972
973 mmsc3_port_1:
974 type: OS::Neutron::Port
975 properties:
976 network_id: { get_resource: mms_traffic_net }
977 fixed_ips: [
978 "ip_address": { get_param: mmsc3_mms_traffic_net_ip }
979 ]
980
981 server_mmsc4:
982 type: OS::Nova::Server
983 properties:
984 name: { get_param: mmsc4_name }
985 image: { get_param: mmsc_image }
986 availability_zone: { get_param: availabilityzone_name }
987 flavor: { get_param: mmsc_flavor }
988 networks:
989 - port: { get_resource: mmsc4_port_0 }
990 - port: { get_resource: mmsc4_port_1 }
991 user_data:
992 str_replace:
993 template: |
994 mmsc.mgmt.ip=${mmsc.mgmt.ip}
995 mmsc.mgmt.netmask=${mmsc.mgmt.netmask}
996 mmsc.mgmt.gateway=${mmsc.mgmt.gateway}
997 mmsc.traffic.ip=${mmsc.traffic.ip}
998 mmsc.traffic.netmask=${mmsc.traffic.netmask}
999 mmsc.traffic.gateway=${mmsc.traffic.gateway}
1000 mmsc.mgmt.route.1=${mmsc.mgmt.route.1}
1001 mmsc.mgmt.route.2=${mmsc.mgmt.route.2}
1002 mmsc.external.dns=${mmsc.external.dns}
1003 mmsc.external.ntp=${mmsc.external.ntp}
1004 params:
1005 ${mmsc.mgmt.ip}: {get_param: mmsc4_oam_net_ip}
1006 ${mmsc.mgmt.netmask}: {get_param: oam_network_netmask}
1007 ${mmsc.mgmt.gateway}: {get_param: oam_network_gateway}
1008 ${mmsc.traffic.ip}: {get_param: mmsc4_mms_traffic_net_ip}
1009 ${mmsc.traffic.netmask}: {get_param: mms_traffic_netmask}
1010 ${mmsc.traffic.gateway}: {get_param: mms_traffic_net_gateway}
1011 ${mmsc.mgmt.route.1}: {get_param: oam_network_route_1}
1012 ${mmsc.mgmt.route.2}: {get_param: oam_network_route_2}
1013 ${mmsc.external.dns}: {get_param: external_dns}
1014 ${mmsc.external.ntp}: {get_param: external_ntp}
1015 user_data_format: RAW
1016
1017 mmsc4_port_0:
1018 type: OS::Neutron::Port
1019 properties:
1020 network_id: { get_param: oam_net_name }
1021 fixed_ips: [
1022 "ip_address": { get_param: mmsc4_oam_net_ip }
1023 ]
1024
1025 mmsc4_port_1:
1026 type: OS::Neutron::Port
1027 properties:
1028 network_id: { get_resource: mms_traffic_net }
1029 fixed_ips: [
1030 "ip_address": { get_param: mmsc4_mms_traffic_net_ip }
1031 ]
1032
1033 server_mmsc5:
1034 type: OS::Nova::Server
1035 properties:
1036 name: { get_param: mmsc5_name }
1037 image: { get_param: mmsc_image }
1038 availability_zone: { get_param: availabilityzone_name }
1039 flavor: { get_param: mmsc_flavor }
1040 networks:
1041 - port: { get_resource: mmsc5_port_0 }
1042 - port: { get_resource: mmsc5_port_1 }
1043
1044 mmsc5_port_0:
1045 type: OS::Neutron::Port
1046 properties:
1047 network_id: { get_param: oam_net_name }
1048 fixed_ips: [
1049 "ip_address": { get_param: mmsc5_oam_net_ip }
1050 ]
1051
1052 mmsc5_port_1:
1053 type: OS::Neutron::Port
1054 properties:
1055 network_id: { get_resource: mms_traffic_net }
1056 fixed_ips: [
1057 "ip_address": { get_param: mmsc5_mms_traffic_net_ip }
1058 ]
1059
1060 server_nems_fe1:
1061 type: OS::Nova::Server
1062 properties:
1063 name: { get_param: nems_fe1_name }
1064 image: { get_param: nems_fe_image }
1065 availability_zone: { get_param: availabilityzone_name }
1066 flavor: { get_param: nems_fe_flavor }
1067 networks:
1068 - port: { get_resource: nems_fe1_port_0 }
1069 - port: { get_resource: nems_fe1_port_1 }
1070 - port: { get_resource: nems_fe1_port_2 }
1071 - port: { get_resource: nems_fe1_port_3 }
1072 - port: { get_resource: nems_fe1_port_4 }
1073 user_data:
1074 str_replace:
1075 template: |
1076 nems.mgmt.ip=${nems.mgmt.ip}
1077 nems.mgmt.netmask=${nems.mgmt.netmask}
1078 nems.mgmt.gateway=${nems.mgmt.gateway}
1079 nems.traffic.ip=${nems.traffic.ip}
1080 nems.traffic.netmask=${nems.traffic.netmask}
1081 nems.traffic.gateway=${nems.traffic.gateway}
1082 nems.fe0.internal.ip=${nems.fe0.internal.ip}
1083 nems.fe1.internal.ip=${nems.fe1.internal.ip}
1084 nems.internal.netmask=${nems.internal.netmask}
1085 nems.internal.gateway=${nems.internal.gateway}
1086 nems.userweb.ip=${nems.userweb.ip}
1087 nems.userweb.netmask=${nems.userweb.netmask}
1088 nems.userweb.gateway=${nems.userweb.gateway}
1089 nems.imap.ip=${nems.imap.ip}
1090 nems.imap.netmask=${nems.imap.netmask}
1091 nems.imap.gateway=${nems.imap.gateway}
1092 nems.be.internal.ip=${nems.be.internal.ip}
1093 nems.be.imap.ip=${nems.be.imap.ip}
1094 nems.mgmt.route.1=${nems.mgmt.route.1}
1095 nems.mgmt.route.2=${nems.mgmt.route.2}
1096 nems.external.dns=${nems.external.dns}
1097 nems.external.ntp=${nems.external.ntp}
1098 nems.node=${nems.node}
1099 params:
1100 ${nems.mgmt.ip}: {get_param: nems_fe1_oam_net_ip}
1101 ${nems.mgmt.netmask}: {get_param: oam_network_netmask}
1102 ${nems.mgmt.gateway}: {get_param: oam_network_gateway}
1103 ${nems.traffic.ip}: {get_param: nems_fe1_nems_traffic_net_ip}
1104 ${nems.traffic.netmask}: {get_param: nems_traffic_netmask}
1105 ${nems.traffic.gateway}: {get_param: nems_traffic_gateway}
1106 ${nems.fe0.internal.ip}: {get_param: nems_fe1_nems_internal_net_ip}
1107 ${nems.fe1.internal.ip}: {get_param: nems_fe2_nems_internal_net_ip}
1108 ${nems.internal.netmask}: {get_param: nems_internal_netmask}
1109 ${nems.internal.gateway}: {get_param: nems_internal_gateway}
1110 ${nems.userweb.ip}: {get_param: nems_fe1_nems_user_web_net_ip}
1111 ${nems.userweb.netmask}: {get_param: nems_user_web_netmask}
1112 ${nems.userweb.gateway}: {get_param: nems_user_web_gateway}
1113 ${nems.imap.ip}: {get_param: nems_fe1_nems_imap_net_ip}
1114 ${nems.imap.netmask}: {get_param: nems_imap_netmask}
1115 ${nems.imap.gateway}: {get_param: nems_imap_gateway}
1116 ${nems.be.internal.ip}: {get_param: nems_be1_nems_internal_net_ip}
1117 ${nems.be.imap.ip}: {get_param: nems_be1_nems_imap_net_ip}
1118 ${nems.mgmt.route.1}: {get_param: oam_network_route_1}
1119 ${nems.mgmt.route.2}: {get_param: oam_network_route_2}
1120 ${nems.external.dns}: {get_param: external_dns}
1121 ${nems.external.ntp}: {get_param: external_ntp}
1122 ${nems.node}: {get_param: nems_fe1_node_role}
1123 user_data_format: RAW
1124
1125 nems_fe1_port_0:
1126 type: OS::Neutron::Port
1127 properties:
1128 network_id: { get_param: oam_net_name }
1129 fixed_ips: [
1130 "ip_address": { get_param: nems_fe1_oam_net_ip }
1131 ]
1132
1133 nems_fe_floating_ip:
1134 type: OS::Neutron::FloatingIP
1135 properties:
1136 floating_network_id: {get_param: oam_net_name}
1137 port_id: {get_resource: nems_fe1_port_0}
1138
1139 nems_fe1_port_1:
1140 type: OS::Neutron::Port
1141 properties:
1142 network_id: { get_resource: nems_traffic_net }
1143 fixed_ips: [
1144 "ip_address": { get_param: nems_fe1_nems_traffic_net_ip }
1145 ]
1146
1147 nems_fe1_port_2:
1148 type: OS::Neutron::Port
1149 properties:
1150 network_id: { get_resource: nems_user_web_net }
1151 fixed_ips: [
1152 "ip_address": { get_param: nems_fe1_nems_user_web_net_ip }
1153 ]
1154
1155 nems_fe1_port_3:
1156 type: OS::Neutron::Port
1157 properties:
1158 network_id: { get_resource: nems_internal_net }
1159 fixed_ips: [
1160 "ip_address": { get_param: nems_fe1_nems_internal_net_ip }
1161 ]
1162
1163 nems_fe1_port_4:
1164 type: OS::Neutron::Port
1165 properties:
1166 network_id: { get_resource: nems_imap_net }
1167 fixed_ips: [
1168 "ip_address": { get_param: nems_fe1_nems_imap_net_ip }
1169 ]
1170
1171 server_nems_fe2:
1172 type: OS::Nova::Server
1173 properties:
1174 name: { get_param: nems_fe2_name }
1175 image: { get_param: nems_fe_image }
1176 availability_zone: { get_param: availabilityzone_name }
1177 flavor: { get_param: nems_fe_flavor }
1178 networks:
1179 - port: { get_resource: nems_fe2_port_0 }
1180 - port: { get_resource: nems_fe2_port_1 }
1181 - port: { get_resource: nems_fe2_port_2 }
1182 - port: { get_resource: nems_fe2_port_3 }
1183 - port: { get_resource: nems_fe2_port_4 }
1184 user_data:
1185 str_replace:
1186 template: |
1187 nems.mgmt.ip=${nems.mgmt.ip}
1188 nems.mgmt.netmask=${nems.mgmt.netmask}
1189 nems.mgmt.gateway=${nems.mgmt.gateway}
1190 nems.traffic.ip=${nems.traffic.ip}
1191 nems.traffic.netmask=${nems.traffic.netmask}
1192 nems.traffic.gateway=${nems.traffic.gateway}
1193 nems.fe0.internal.ip=${nems.fe0.internal.ip}
1194 nems.fe1.internal.ip=${nems.fe1.internal.ip}
1195 nems.internal.netmask=${nems.internal.netmask}
1196 nems.internal.gateway=${nems.internal.gateway}
1197 nems.userweb.ip=${nems.userweb.ip}
1198 nems.userweb.netmask=${nems.userweb.netmask}
1199 nems.userweb.gateway=${nems.userweb.gateway}
1200 nems.imap.ip=${nems.imap.ip}
1201 nems.imap.netmask=${nems.imap.netmask}
1202 nems.imap.gateway=${nems.imap.gateway}
1203 nems.be.internal.ip=${nems.be.internal.ip}
1204 nems.be.imap.ip=${nems.be.imap.ip}
1205 nems.mgmt.route.1=${nems.mgmt.route.1}
1206 nems.mgmt.route.2=${nems.mgmt.route.2}
1207 nems.external.dns=${nems.external.dns}
1208 nems.external.ntp=${nems.external.ntp}
1209 nems.node=${nems.node}
1210 params:
1211 ${nems.mgmt.ip}: {get_param: nems_fe2_oam_net_ip}
1212 ${nems.mgmt.netmask}: {get_param: oam_network_netmask}
1213 ${nems.mgmt.gateway}: {get_param: oam_network_gateway}
1214 ${nems.traffic.ip}: {get_param: nems_fe2_nems_traffic_net_ip}
1215 ${nems.traffic.netmask}: {get_param: nems_traffic_netmask}
1216 ${nems.traffic.gateway}: {get_param: nems_traffic_gateway}
1217 ${nems.fe0.internal.ip}: {get_param: nems_fe1_nems_internal_net_ip}
1218 ${nems.fe1.internal.ip}: {get_param: nems_fe2_nems_internal_net_ip}
1219 ${nems.internal.netmask}: {get_param: nems_internal_netmask}
1220 ${nems.internal.gateway}: {get_param: nems_internal_gateway}
1221 ${nems.userweb.ip}: {get_param: nems_fe2_nems_user_web_net_ip}
1222 ${nems.userweb.netmask}: {get_param: nems_user_web_netmask}
1223 ${nems.userweb.gateway}: {get_param: nems_user_web_gateway}
1224 ${nems.imap.ip}: {get_param: nems_fe2_nems_imap_net_ip}
1225 ${nems.imap.netmask}: {get_param: nems_imap_netmask}
1226 ${nems.imap.gateway}: {get_param: nems_imap_gateway}
1227 ${nems.be.internal.ip}: {get_param: nems_be2_nems_internal_net_ip}
1228 ${nems.be.imap.ip}: {get_param: nems_be2_nems_imap_net_ip}
1229 ${nems.mgmt.route.1}: {get_param: oam_network_route_1}
1230 ${nems.mgmt.route.2}: {get_param: oam_network_route_2}
1231 ${nems.external.dns}: {get_param: external_dns}
1232 ${nems.external.ntp}: {get_param: external_ntp}
1233 ${nems.node}: {get_param: nems_fe2_node_role}
1234 user_data_format: RAW
1235
1236 nems_fe2_port_0:
1237 type: OS::Neutron::Port
1238 properties:
1239 network_id: { get_param: oam_net_name }
1240 fixed_ips: [
1241 "ip_address": { get_param: nems_fe2_oam_net_ip }
1242 ]
1243
1244 nems_fe_floating_ip:
1245 type: OS::Neutron::FloatingIP
1246 properties:
1247 floating_network_id: {get_param: oam_net_name}
1248 port_id: {get_resource: nems_fe2_port_0}
1249
1250 nems_fe2_port_1:
1251 type: OS::Neutron::Port
1252 properties:
1253 network_id: { get_resource: nems_traffic_net }
1254 fixed_ips: [
1255 "ip_address": { get_param: nems_fe2_nems_traffic_net_ip }
1256 ]
1257
1258 nems_fe2_port_2:
1259 type: OS::Neutron::Port
1260 properties:
1261 network_id: { get_resource: nems_user_web_net }
1262 fixed_ips: [
1263 "ip_address": { get_param: nems_fe2_nems_user_web_net_ip }
1264 ]
1265
1266 nems_fe2_port_3:
1267 type: OS::Neutron::Port
1268 properties:
1269 network_id: { get_resource: nems_internal_net }
1270 fixed_ips: [
1271 "ip_address": { get_param: nems_fe2_nems_internal_net_ip }
1272 ]
1273
1274 nems_fe2_port_4:
1275 type: OS::Neutron::Port
1276 properties:
1277 network_id: { get_resource: nems_imap_net }
1278 fixed_ips: [
1279 "ip_address": { get_param: nems_fe2_nems_imap_net_ip }
1280 ]
1281
1282 server_nems_be1:
1283 type: OS::Nova::Server
1284 properties:
1285 name: { get_param: nems_be1_name }
1286 image: { get_param: nems_be_image }
1287 availability_zone: { get_param: availabilityzone_name }
1288 flavor: { get_param: nems_be_flavor }
1289 networks:
1290 - port: { get_resource: nems_be1_port_0 }
1291 - port: { get_resource: nems_be1_port_1 }
1292 - port: { get_resource: nems_be1_port_2 }
1293 user_data:
1294 str_replace:
1295 template: |
1296 nems.be.mgmt.ip=${nems.be.mgmt.ip}
1297 nems.mgmt.netmask=${nems.mgmt.netmask}
1298 nems.mgmt.gateway=${nems.mgmt.gateway}
1299 nems.be.internal.ip=${nems.be.internal.ip}
1300 nems.internal.netmask=${nems.internal.netmask}
1301 nems.internal.gateway=${nems.internal.gateway}
1302 nems.imap.netmask=${nems.imap.netmask}
1303 nems.imap.gateway=${nems.imap.gateway}
1304 nems.be.internal.ip=${nems.be.internal.ip}
1305 nems.be.imap.ip=${nems.be.imap.ip}
1306 nems.mgmt.route.1=${nems.mgmt.route.1}
1307 nems.mgmt.route.2=${nems.mgmt.route.2}
1308 nems.external.dns=${nems.external.dns}
1309 nems.external.ntp=${nems.external.ntp}
1310 nems.node=${nems.node}
1311 params:
1312 ${nems.be.mgmt.ip}: {get_param: nems_be1_oam_net_ip}
1313 ${nems.mgmt.netmask}: {get_param: oam_network_netmask}
1314 ${nems.mgmt.gateway}: {get_param: oam_network_gateway}
1315 ${nems.be.internal.ip}: {get_param: nems_be1_nems_internal_net_ip}
1316 ${nems.internal.netmask}: {get_param: nems_internal_netmask}
1317 ${nems.internal.gateway}: {get_param: nems_internal_gateway}
1318 ${nems.imap.netmask}: {get_param: nems_imap_netmask}
1319 ${nems.imap.gateway}: {get_param: nems_imap_gateway}
1320 ${nems.be.imap.ip}: {get_param: nems_be1_nems_imap_net_ip}
1321 ${nems.mgmt.route.1}: {get_param: oam_network_route_1}
1322 ${nems.mgmt.route.2}: {get_param: oam_network_route_2}
1323 ${nems.external.dns}: {get_param: external_dns}
1324 ${nems.external.ntp}: {get_param: external_ntp}
1325 ${nems.node}: {get_param: nems_be1_node_role}
1326 user_data_format: RAW
1327
1328 nems_be1_port_0:
1329 type: OS::Neutron::Port
1330 properties:
1331 network_id: { get_param: oam_net_name }
1332 fixed_ips: [
1333 "ip_address": { get_param: nems_be1_oam_net_ip }
1334 ]
1335
1336 nems_be_floating_ip:
1337 type: OS::Neutron::FloatingIP
1338 properties:
1339 floating_network_id: {get_param: oam_net_name}
1340 port_id: {get_resource: nems_be1_port_0}
1341
1342 nems_be1_port_1:
1343 type: OS::Neutron::Port
1344 properties:
1345 network_id: { get_resource: nems_internal_net }
1346 fixed_ips: [
1347 "ip_address": { get_param: nems_be1_nems_internal_net_ip }
1348 ]
1349
1350 nems_be1_port_2:
1351 type: OS::Neutron::Port
1352 properties:
1353 network_id: { get_resource: nems_imap_net }
1354 fixed_ips: [
1355 "ip_address": { get_param: nems_be1_nems_imap_net_ip }
1356 ]
1357
1358 server_nems_be2:
1359 type: OS::Nova::Server
1360 properties:
1361 name: { get_param: nems_be2_name }
1362 image: { get_param: nems_be_image }
1363 availability_zone: { get_param: availabilityzone_name }
1364 flavor: { get_param: nems_be_flavor }
1365 networks:
1366 - port: { get_resource: nems_be2_port_0 }
1367 - port: { get_resource: nems_be2_port_1 }
1368 - port: { get_resource: nems_be2_port_2 }
1369 user_data:
1370 str_replace:
1371 template: |
1372 nems.be.mgmt.ip=${nems.be.mgmt.ip}
1373 nems.mgmt.netmask=${nems.mgmt.netmask}
1374 nems.mgmt.gateway=${nems.mgmt.gateway}
1375 nems.be.internal.ip=${nems.be.internal.ip}
1376 nems.internal.netmask=${nems.internal.netmask}
1377 nems.internal.gateway=${nems.internal.gateway}
1378 nems.imap.netmask=${nems.imap.netmask}
1379 nems.imap.gateway=${nems.imap.gateway}
1380 nems.be.internal.ip=${nems.be.internal.ip}
1381 nems.be.imap.ip=${nems.be.imap.ip}
1382 nems.mgmt.route.1=${nems.mgmt.route.1}
1383 nems.mgmt.route.2=${nems.mgmt.route.2}
1384 nems.external.dns=${nems.external.dns}
1385 nems.external.ntp=${nems.external.ntp}
1386 nems.node=${nems.node}
1387 params:
1388 ${nems.be.mgmt.ip}: {get_param: nems_be2_oam_net_ip}
1389 ${nems.mgmt.netmask}: {get_param: oam_network_netmask}
1390 ${nems.mgmt.gateway}: {get_param: oam_network_gateway}
1391 ${nems.be.internal.ip}: {get_param: nems_be2_nems_internal_net_ip}
1392 ${nems.internal.netmask}: {get_param: nems_internal_netmask}
1393 ${nems.internal.gateway}: {get_param: nems_internal_gateway}
1394 ${nems.imap.netmask}: {get_param: nems_imap_netmask}
1395 ${nems.imap.gateway}: {get_param: nems_imap_gateway}
1396 ${nems.be.imap.ip}: {get_param: nems_be2_nems_imap_net_ip}
1397 ${nems.mgmt.route.1}: {get_param: oam_network_route_1}
1398 ${nems.mgmt.route.2}: {get_param: oam_network_route_2}
1399 ${nems.external.dns}: {get_param: external_dns}
1400 ${nems.external.ntp}: {get_param: external_ntp}
1401 ${nems.node}: {get_param: nems_be1_node_role}
1402 user_data_format: RAW
1403
1404 nems_be2_port_0:
1405 type: OS::Neutron::Port
1406 properties:
1407 network_id: { get_param: oam_net_name }
1408 fixed_ips: [
1409 "ip_address": { get_param: nems_be2_oam_net_ip }
1410 ]
1411
1412 nems_be_floating_ip:
1413 type: OS::Neutron::FloatingIP
1414 properties:
1415 floating_network_id: {get_param: oam_net_name}
1416 port_id: {get_resource: nems_be2_port_0}
1417
1418 nems_be2_port_1:
1419 type: OS::Neutron::Port
1420 properties:
1421 network_id: { get_resource: nems_internal_net }
1422 fixed_ips: [
1423 "ip_address": { get_param: nems_be2_nems_internal_net_ip }
1424 ]
1425
1426 nems_be2_port_2:
1427 type: OS::Neutron::Port
1428 properties:
1429 network_id: { get_resource: nems_imap_net }
1430 fixed_ips: [
1431 "ip_address": { get_param: nems_be2_nems_imap_net_ip }
1432 ]
1433
1434 server_eca_oam1:
1435 type: OS::Nova::Server
1436 properties:
1437 name: { get_param: eca_oam1_name }
1438 image: { get_param: eca_oam_image }
1439 availability_zone: { get_param: availabilityzone_name }
1440 flavor: { get_param: eca_oam_flavor }
1441 networks:
1442 - port: { get_resource: eca_oam1_port_0 }
1443 - port: { get_resource: eca_oam1_port_1 }
1444
1445 eca_oam1_port_0:
1446 type: OS::Neutron::Port
1447 properties:
1448 network_id: { get_param: oam_net_name }
1449 fixed_ips: [
1450 "ip_address": { get_param: eca_oam1_oam_net_ip }
1451 ]
1452
1453 eca_oam1_port_1:
1454 type: OS::Neutron::Port
1455 properties:
1456 network_id: { get_resource: eca_mgmt_net }
1457 fixed_ips: [
1458 "ip_address": { get_param: eca_oam1_eca_mgmt_net_ip }
1459 ]
1460
1461 server_eca_oam2:
1462 type: OS::Nova::Server
1463 properties:
1464 name: { get_param: eca_oam2_name }
1465 image: { get_param: eca_oam_image }
1466 availability_zone: { get_param: availabilityzone_name }
1467 flavor: { get_param: eca_oam_flavor }
1468 networks:
1469 - port: { get_resource: eca_oam2_port_0 }
1470 - port: { get_resource: eca_oam2_port_1 }
1471
1472 eca_oam2_port_0:
1473 type: OS::Neutron::Port
1474 properties:
1475 network_id: { get_param: oam_net_name }
1476 fixed_ips: [
1477 "ip_address": { get_param: eca_oam2_oam_net_ip }
1478 ]
1479
1480 eca_oam2_port_1:
1481 type: OS::Neutron::Port
1482 properties:
1483 network_id: { get_resource: eca_mgmt_net }
1484 fixed_ips: [
1485 "ip_address": { get_param: eca_oam2_eca_mgmt_net_ip }
1486 ]
1487
1488 server_eca_trx1:
1489 type: OS::Nova::Server
1490 properties:
1491 name: { get_param: eca_trx1_name }
1492 image: { get_param: eca_trx_image }
1493 availability_zone: { get_param: availabilityzone_name }
1494 flavor: { get_param: eca_trx_flavor }
1495 networks:
1496 - port: { get_resource: eca_trx1_port_0 }
1497 - port: { get_resource: eca_trx1_port_1 }
1498 - port: { get_resource: eca_trx1_port_2 }
1499
1500
1501 eca_trx1_port_0:
1502 type: OS::Neutron::Port
1503 properties:
1504 network_id: { get_param: oam_net_name }
1505 fixed_ips: [
1506 "ip_address": { get_param: eca_trx1_oam_net_ip }
1507 ]
1508
1509 eca_trx1_port_1:
1510 type: OS::Neutron::Port
1511 properties:
1512 network_id: { get_resource: eca_mgmt_net }
1513 fixed_ips: [
1514 "ip_address": { get_param: eca_trx1_eca_mgmt_net_ip }
1515 ]
1516
1517 eca_trx1_port_2:
1518 type: OS::Neutron::Port
1519 properties:
1520 network_id: { get_resource: eca_traffic_net }
1521 fixed_ips: [
1522 "ip_address": { get_param: eca_trx1_eca_traffic_net_ip }
1523 ]