push addional code
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / extractServiceComposition / networks / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7   NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9   CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11   CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13   ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15   NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17   NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19   ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21   AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 topology_template:
24   inputs:
25     Internal2_name:
26       hidden: false
27       immutable: false
28       type: string
29       default: Internal2-subnet
30     vlc2-Internal2-mac:
31       hidden: false
32       immutable: false
33       type: string
34       description: static mac address assigned to vlc2-Internal2
35       default: 00:81:37:0E:02:12
36     epc-sctp-a-net-rt:
37       hidden: false
38       immutable: false
39       type: string
40       description: epc-sctp-a route target
41       default: 13979:105717
42     epc-sctp-b-net-rt:
43       hidden: false
44       immutable: false
45       type: string
46       description: epc-sctp-b route target
47       default: 13979:105719
48     gpb-flavor:
49       hidden: false
50       immutable: false
51       type: string
52       description: Flavor to use for servers gpb
53       default: m4.xlarge4
54     Internal1_cidr:
55       hidden: false
56       immutable: false
57       type: string
58       default: 169.253.0.0/17
59     epc-sctp-a-pool-start:
60       hidden: false
61       immutable: false
62       type: string
63       description: epc-sctp-a-net network ip pool start IP address
64       default: 107.243.37.3
65     Internal2_subnet_name:
66       hidden: false
67       immutable: false
68       type: string
69       default: vmme_int_int_sub_2
70     Internal1_subnet_name:
71       hidden: false
72       immutable: false
73       type: string
74       default: vmme_int_int_sub_1
75     gpb1-Internal1-mac:
76       hidden: false
77       immutable: false
78       type: string
79       description: static mac address assigned to gpb1-Internal1
80       default: 00:80:37:0E:01:22
81     gpb1-Internal1-ip:
82       hidden: false
83       immutable: false
84       type: string
85       default: 169.254.0.101
86     FSB_1_image:
87       hidden: false
88       immutable: false
89       type: string
90       description: image name
91     fsb1-Internal2-mac:
92       hidden: false
93       immutable: false
94       type: string
95       description: static mac address assigned to fsb1-Internal2
96       default: 00:81:37:0E:0B:12
97     ncb_zone:
98       hidden: false
99       immutable: false
100       type: string
101       description: cluster for spawnning ncb instances
102       default: nova
103     Internal2_net_name:
104       hidden: false
105       immutable: false
106       type: string
107       default: vmme_int_int_2
108     epc-sctp-a-pool-end:
109       hidden: false
110       immutable: false
111       type: string
112       description: epc-sctp-a-net network ip pool end IP address
113       default: 107.243.37.30
114     Internal1_name:
115       hidden: false
116       immutable: false
117       type: string
118       default: Internal1-subnet
119     gpb2-name:
120       hidden: false
121       immutable: false
122       type: string
123       description: Name of gpb2
124       default: ZRDM1MMEX33GPB002
125     fsb2-Internal1-mac:
126       hidden: false
127       immutable: false
128       type: string
129       description: static mac address assigned to fsb2-Internal1
130       default: 00:80:37:0E:0D:12
131     fsb2-name:
132       hidden: false
133       immutable: false
134       type: string
135       description: Name of fsb1
136       default: ZRDM1MMEX33FSB002
137     static_prefix_sctp_b_1:
138       hidden: false
139       immutable: false
140       type: string
141       description: Static Prefix
142       default: 107.239.40.64/30
143     fsb2-oam-ip:
144       hidden: false
145       immutable: false
146       type: string
147       default: 107.250.172.222
148     fsb2-flavor:
149       hidden: false
150       immutable: false
151       type: string
152       description: Flavor to use for servers  fsb2
153       default: m4.xlarge4
154     fsb2-Internal2-mac:
155       hidden: false
156       immutable: false
157       type: string
158       description: static mac address assigned to fsb2-Internal2
159       default: 00:81:37:0E:0D:12
160     ncb2-Internal1-mac:
161       hidden: false
162       immutable: false
163       type: string
164       description: static mac address assigned to ncb2-Internal1
165       default: 00:80:37:0E:0F:12
166     ncb2-name:
167       hidden: false
168       immutable: false
169       type: string
170       description: Name of ncb2
171       default: ZRDM1MMEX33NCB002
172     epc-sctp-b-pool-end:
173       hidden: false
174       immutable: false
175       type: string
176       description: epc-sctp-b-net network ip pool end IP address
177       default: 107.243.37.62
178     vlc1-gtp-ip:
179       hidden: false
180       immutable: false
181       type: string
182       default: 107.243.37.67
183     epc-sctp-b-pool-start:
184       hidden: false
185       immutable: false
186       type: string
187       description: epc-sctp-b-net network ip pool start IP address
188       default: 107.243.37.35
189     my_instance:
190       hidden: false
191       immutable: false
192       type: string
193       description: instance
194     Internal2_shared:
195       hidden: false
196       immutable: false
197       type: string
198       default: 'False'
199     Internal1_net_name:
200       hidden: false
201       immutable: false
202       type: string
203       default: vmme_int_int_1
204     vlc2-name:
205       hidden: false
206       immutable: false
207       type: string
208       description: Name of vlc2
209       default: ZRDM1MMEX33VLC002
210     Internal2_ipam_name:
211       hidden: false
212       immutable: false
213       type: string
214       default: vmme_ipam_int2
215     vlc1-sctp-b-ip:
216       hidden: false
217       immutable: false
218       type: string
219       default: 107.243.37.35
220     Internal1_net_pool_end:
221       hidden: false
222       immutable: false
223       type: string
224       default: 169.253.0.254
225     Internal1_default_gateway:
226       hidden: false
227       immutable: false
228       type: string
229       default: 169.253.0.3
230     ncb1-Internal1-mac:
231       hidden: false
232       immutable: false
233       type: string
234       description: static mac address assigned to ncb1-Internal1
235       default: 00:80:37:0E:09:12
236     epc-gtp-net-name:
237       hidden: false
238       immutable: false
239       type: string
240       description: gtp net name
241       default: EPC-GTP
242     vlc1-Internal1-mac:
243       hidden: false
244       immutable: false
245       type: string
246       description: static mac address assigned to vlc1-Internal1
247       default: 00:80:37:0E:01:12
248     gpb2-Internal1-mac:
249       hidden: false
250       immutable: false
251       type: string
252       description: static mac address assigned to gpb2-Internal1
253       default: 00:80:37:0E:02:22
254     epc-gtp-net-cidr:
255       hidden: false
256       immutable: false
257       type: string
258       description: gtp stubnet
259       default: 107.243.37.64/27
260     oam_net_id:
261       hidden: false
262       immutable: false
263       type: string
264       description: uuid of oam network
265       default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351
266     vlc_zone:
267       hidden: false
268       immutable: false
269       type: string
270       description: cluster for spawnning vlc instances
271       default: nova
272     vlc2-Internal1-mac:
273       hidden: false
274       immutable: false
275       type: string
276       description: static mac address assigned to vlc2-Internal1
277       default: 00:80:37:0E:02:12
278     epc-sctp-a-net-cidr:
279       hidden: false
280       immutable: false
281       type: string
282       description: epc-sctp-a subnet
283       default: 107.243.37.0/27
284     Internal1_forwarding_mode:
285       hidden: false
286       immutable: false
287       type: string
288       default: l2
289     Internal2_dhcp:
290       hidden: false
291       immutable: false
292       type: string
293       default: 'False'
294     Internal4_dhcp:
295       hidden: false
296       immutable: false
297       type: string
298     fsb1-oam-ip:
299       hidden: false
300       immutable: false
301       type: string
302       default: 107.250.172.221
303     FSB_2_image:
304       hidden: false
305       immutable: false
306       type: string
307       description: image name
308     vlc1-oam-ip:
309       hidden: false
310       immutable: false
311       type: string
312       default: 107.250.172.227
313     epc-sctp-a-net-name:
314       hidden: false
315       immutable: false
316       type: string
317       description: epc-sctp-a net name
318       default: EPC-SCTP-A
319     vlc2-oam-ip:
320       hidden: false
321       immutable: false
322       type: string
323       default: 107.250.172.228
324     Internal2_net_pool_start:
325       hidden: false
326       immutable: false
327       type: string
328       default: 169.255.0.100
329     FSB1_volume_name:
330       hidden: false
331       immutable: false
332       type: string
333       description: volume name
334     vlc1-sctp-a-ip:
335       hidden: false
336       immutable: false
337       type: string
338       default: 107.243.37.3
339     Internal1_ipam_name:
340       hidden: false
341       immutable: false
342       type: string
343       default: vmme_ipam_int1
344     Internal1_dhcp:
345       hidden: false
346       immutable: false
347       type: string
348       default: 'False'
349     Internal3_dhcp:
350       hidden: false
351       immutable: false
352       type: string
353       default: 'True'
354     Internal2_external:
355       hidden: false
356       immutable: false
357       type: string
358       default: 'False'
359     Internal2_forwarding_mode:
360       hidden: false
361       immutable: false
362       type: string
363       default: l2
364     vlc1-name:
365       hidden: false
366       immutable: false
367       type: string
368       description: Name of vlc1
369       default: ZRDM1MMEX33VLC002
370     vlc-flavor:
371       hidden: false
372       immutable: false
373       type: string
374       description: Flavor to use for servers vlc
375       default: m4.xlarge4
376     epc-gtp-net-rt:
377       hidden: false
378       immutable: false
379       type: string
380       description: gtp route target
381       default: 13979:105715
382     gpb_zone:
383       hidden: false
384       immutable: false
385       type: string
386       description: cluster for spawnning gpb instances
387       default: nova
388     Internal1-net:
389       hidden: false
390       immutable: false
391       type: string
392       description: net
393     gpb1-Internal2-mac:
394       hidden: false
395       immutable: false
396       type: string
397       description: static mac address assigned to gpb1-Internal2
398       default: 00:81:37:0E:01:22
399     fsb1-Internal1-mac:
400       hidden: false
401       immutable: false
402       type: string
403       description: static mac address assigned to fsb1-Internal1
404       default: 00:80:37:0E:0B:12
405     FSB2_volume_name:
406       hidden: false
407       immutable: false
408       type: string
409       description: volume name
410     VMME_FSB2_boot_volume:
411       hidden: false
412       immutable: false
413       type: string
414       default: 089a0d11-4b15-4370-8343-3f90907b1221
415     fsb_zone:
416       hidden: false
417       immutable: false
418       type: string
419       description: cluster for spawnning fsb instances
420       default: nova
421     VMME_FSB1_boot_volume:
422       hidden: false
423       immutable: false
424       type: string
425       default: 8248e794-6173-4b49-b9c3-8219b0b56f4e
426     Internal2_default_gateway:
427       hidden: false
428       immutable: false
429       type: string
430       default: 169.255.0.3
431     Internal1_external:
432       hidden: false
433       immutable: false
434       type: string
435       default: 'False'
436     vlc2-sctp-a-ip:
437       hidden: false
438       immutable: false
439       type: string
440       default: 107.243.37.4
441     ncb-flavor:
442       hidden: false
443       immutable: false
444       type: string
445       description: Flavor to use for servers ncb
446       default: m4.xlarge4
447     Internal1_shared:
448       hidden: false
449       immutable: false
450       type: string
451       default: 'False'
452     fsb1-name:
453       hidden: false
454       immutable: false
455       type: string
456       description: Name of fsb1
457       default: ZRDM1MMEX33FSB001
458     static_prefix_gtp_1:
459       hidden: false
460       immutable: false
461       type: string
462       description: Static Prefix
463       default: 107.239.40.96/30
464     epc-sctp-b-net-gateway:
465       hidden: false
466       immutable: false
467       type: string
468       description: epc-sctp-b-net network gateway
469       default: 107.243.37.33
470     epc-sctp-b-net-cidr:
471       hidden: false
472       immutable: false
473       type: string
474       description: epc-sctp-b subnet
475       default: 107.243.37.32/24
476     epc-gtp-pool-end:
477       hidden: false
478       immutable: false
479       type: string
480       description: gtp network ip pool end IP address
481       default: 107.243.37.94
482     epc-sctp-a-net-gateway:
483       hidden: false
484       immutable: false
485       type: string
486       description: epc-sctp-a-net network gateway
487       default: 107.243.37.1
488     vlc2-gtp-ip:
489       hidden: false
490       immutable: false
491       type: string
492       default: 107.243.37.68
493     vlc2-sctp-b-ip:
494       hidden: false
495       immutable: false
496       type: string
497       default: 107.243.37.36
498     Internal1_net_pool_start:
499       hidden: false
500       immutable: false
501       type: string
502       default: 169.253.0.100
503     volume_size:
504       hidden: false
505       immutable: false
506       type: string
507       description: volume
508     fsb2-image:
509       hidden: false
510       immutable: false
511       type: string
512       description: Name of image to use for server fsb2
513       default: MME_FSB2_15B-CP04-r5a01
514     ncb2-Internal2-mac:
515       hidden: false
516       immutable: false
517       type: string
518       description: static mac address assigned to ncb2-Internal2
519       default: 00:81:37:0E:0F:12
520     ncb1-name:
521       hidden: false
522       immutable: false
523       type: string
524       description: Name of ncb1
525       default: ZRDM1MMEX33NCB001
526     fsb1-image:
527       hidden: false
528       immutable: false
529       type: string
530       description: Name of image to use for server fsb1
531       default: MME_FSB1_15B-CP04-r5a01
532     fsb1-flavor:
533       hidden: false
534       immutable: false
535       type: string
536       description: Flavor to use for servers  fsb1
537       default: m4.xlarge4
538     volume_type:
539       hidden: false
540       immutable: false
541       type: string
542       description: volume
543     Internal2_net_pool_end:
544       hidden: false
545       immutable: false
546       type: string
547       default: 169.255.0.254
548     epc-sctp-b-net-name:
549       hidden: false
550       immutable: false
551       type: string
552       description: epc-sctp-b net name
553       default: EPC-SCTP-B
554     Internal2_cidr:
555       hidden: false
556       immutable: false
557       type: string
558       default: 169.255.0.0/17
559     epc-gtp-net-gateway:
560       hidden: false
561       immutable: false
562       type: string
563       description: gtp network gateway
564       default: 107.243.37.65
565     gpb2-Internal2-mac:
566       hidden: false
567       immutable: false
568       type: string
569       description: static mac address assigned to gpb2-Internal2
570       default: 00:81:37:0E:02:22
571     ncb1-Internal2-mac:
572       hidden: false
573       immutable: false
574       type: string
575       description: static mac address assigned to ncb1-Internal2
576       default: 00:81:37:0E:09:12
577     epc-gtp-pool-start:
578       hidden: false
579       immutable: false
580       type: string
581       description: gtp network ip pool start IP address
582       default: 107.243.37.67
583     static_prefix_sctp_a_1:
584       hidden: false
585       immutable: false
586       type: string
587       description: Static Prefix
588       default: 107.239.40.32/30
589     gpb1-name:
590       hidden: false
591       immutable: false
592       type: string
593       description: Name of gpb1
594       default: ZRDM1MMEX33GPB001
595     pxe-image:
596       hidden: false
597       immutable: false
598       type: string
599       description: Name of image to use for server ncb
600       default: MME_PXE-BOOT_cxp9025898_2r5a01.qcow2
601     vlc1-Internal2-mac:
602       hidden: false
603       immutable: false
604       type: string
605       description: static mac address assigned to vlc1-Internal2
606       default: 00:81:37:0E:01:12
607   node_templates:
608     contail-net-default-true-dhcp:
609       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
610       properties:
611         route_targets:
612         - get_input: epc-gtp-net-rt
613         network_name:
614           get_input: epc-gtp-net-name
615         subnets:
616           epc-gtp-subnet:
617             cidr:
618               get_input: epc-gtp-net-cidr
619             gateway_ip:
620               get_input: epc-gtp-net-gateway
621             allocation_pools:
622             - start:
623                 get_input: epc-gtp-pool-start
624               end:
625                 get_input: epc-gtp-pool-end
626     contail-net-dhcp-false-param:
627       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
628       properties:
629         shared:
630           get_input: Internal1_shared
631         forwarding_mode:
632           get_input: Internal1_forwarding_mode
633         external: true
634         route_targets:
635           get_artifact:
636           - SELF
637           - nimbus-ethernet
638         network_name:
639           get_input: Internal1_net_name
640         subnets:
641           Internal3-subnet:
642             enable_dhcp:
643               get_input: Internal2_dhcp
644             cidr:
645               get_input: Internal2_cidr
646             gateway_ip:
647               get_input: Internal2_default_gateway
648           Internal1-subnet:
649             enable_dhcp:
650               get_input: Internal1_dhcp
651             cidr:
652               get_input: Internal1_cidr
653             gateway_ip:
654               get_input: Internal1_default_gateway
655         dhcp_enabled:
656           get_input: Internal1_dhcp
657       artifacts:
658         nimbus-ethernet:
659           type: tosca.artifacts.Deployment
660           file: ../Artifacts/nimbus-ethernet.sh
661     contail-net-dhcp-false:
662       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
663       properties:
664         shared:
665           get_input: Internal1_shared
666         forwarding_mode:
667           get_input: Internal1_forwarding_mode
668         external: true
669         route_targets:
670           get_artifact:
671           - SELF
672           - nimbus-ethernet
673         network_name:
674           get_input: Internal1_net_name
675         subnets:
676           Internal3-subnet:
677             enable_dhcp:
678               get_input: Internal2_dhcp
679             cidr:
680               get_input: Internal2_cidr
681             gateway_ip:
682               get_input: Internal2_default_gateway
683           Internal1-subnet:
684             enable_dhcp:
685               get_input: Internal1_dhcp
686             cidr:
687               get_input: Internal1_cidr
688             gateway_ip:
689               get_input: Internal1_default_gateway
690         dhcp_enabled: false
691       artifacts:
692         nimbus-ethernet:
693           type: tosca.artifacts.Deployment
694           file: ../Artifacts/nimbus-ethernet.sh
695     contail-net-dhcp-true-param:
696       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
697       properties:
698         shared:
699           get_input: Internal1_shared
700         forwarding_mode:
701           get_input: Internal1_forwarding_mode
702         external: true
703         route_targets:
704           get_artifact:
705           - SELF
706           - nimbus-ethernet
707         network_name:
708           get_input: Internal1_net_name
709         subnets:
710           Internal3-subnet:
711             enable_dhcp:
712               get_input: Internal2_dhcp
713             cidr:
714               get_input: Internal2_cidr
715             gateway_ip:
716               get_input: Internal2_default_gateway
717           Internal1-subnet:
718             enable_dhcp:
719               get_input: Internal1_dhcp
720             cidr:
721               get_input: Internal1_cidr
722             gateway_ip:
723               get_input: Internal1_default_gateway
724         dhcp_enabled:
725           get_input: Internal3_dhcp
726       artifacts:
727         nimbus-ethernet:
728           type: tosca.artifacts.Deployment
729           file: ../Artifacts/nimbus-ethernet.sh
730     contail-net-dhcp-true:
731       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
732       properties:
733         shared:
734           get_input: Internal1_shared
735         forwarding_mode:
736           get_input: Internal1_forwarding_mode
737         external: true
738         route_targets:
739           get_artifact:
740           - SELF
741           - nimbus-ethernet
742         network_name:
743           get_input: Internal1_net_name
744         subnets:
745           Internal3-subnet:
746             enable_dhcp:
747               get_input: Internal2_dhcp
748             cidr:
749               get_input: Internal2_cidr
750             gateway_ip:
751               get_input: Internal2_default_gateway
752           Internal1-subnet:
753             enable_dhcp:
754               get_input: Internal1_dhcp
755             cidr:
756               get_input: Internal1_cidr
757             gateway_ip:
758               get_input: Internal1_default_gateway
759         dhcp_enabled: true
760       artifacts:
761         nimbus-ethernet:
762           type: tosca.artifacts.Deployment
763           file: ../Artifacts/nimbus-ethernet.sh
764     contail-net-dhcp-default-true-param:
765       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
766       properties:
767         shared:
768           get_input: Internal1_shared
769         forwarding_mode:
770           get_input: Internal1_forwarding_mode
771         external: true
772         route_targets:
773           get_artifact:
774           - SELF
775           - nimbus-ethernet
776         network_name:
777           get_input: Internal1_net_name
778         subnets:
779           Internal3-subnet:
780             enable_dhcp:
781               get_input: Internal2_dhcp
782             cidr:
783               get_input: Internal2_cidr
784             gateway_ip:
785               get_input: Internal2_default_gateway
786           Internal1-subnet:
787             enable_dhcp:
788               get_input: Internal1_dhcp
789             cidr:
790               get_input: Internal1_cidr
791             gateway_ip:
792               get_input: Internal1_default_gateway
793         dhcp_enabled:
794           get_input: Internal4_dhcp
795       artifacts:
796         nimbus-ethernet:
797           type: tosca.artifacts.Deployment
798           file: ../Artifacts/nimbus-ethernet.sh
799     neutron-net-default-dhcp:
800       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
801       properties:
802         network_name:
803           get_input: private_net_2_name
804         subnets:
805           private_subnet_2:
806             cidr:
807               get_input: private_net_2_cidr
808             gateway_ip:
809               get_input: private_net_2_gateway
810             allocation_pools:
811             - start:
812                 get_input: private_net_2_pool_start
813               end:
814                 get_input: private_net_2_pool_end
815   groups:
816     vmme_small:
817       type: org.openecomp.groups.heat.HeatStack
818       properties:
819         heat_file: ../Artifacts/vmme_small.yml
820         description: |
821           HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc
822       members:
823       - contail-net-default-true-dhcp
824       - contail-net-dhcp-false-param
825       - contail-net-dhcp-false
826       - contail-net-dhcp-true-param
827       - contail-net-dhcp-true
828       - contail-net-dhcp-default-true-param
829       - neutron-net-default-dhcp