25f6310896d39fa582d0f15cfa25934e865a988c
[sdc.git] / common / openecomp-sdc-artifact-generator-lib / openecomp-sdc-artifact-generator-test / src / main / resources / vf_vmme_template_NullFields.yml
1 tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0
2
3 description: VF Template for pseodo vMME 
4
5 # metadata of the VF model
6 metadata:
7   invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22
8   UUID:
9   name: vMME_VF
10   description: vMME_VF
11   type: VF
12   category: Application L4+
13   subcategory: Firewall
14   vendor: Ericsson
15
16 # imports include all other tosca definitions that are required for this template
17 imports:
18   NovaServerGlobalTypes:
19     file: NovaServerGlobalTypesServiceTemplate.yaml
20   
21 topology_template:
22
23 # inputs are all the HEAT_ENV parameters and also the editable properties of the VF's internal resources (VFCs, connection points and networks)
24   inputs:    
25     fsb1_vfc_instance_name: # from HEAT ENV
26       type: string
27       description: VFC instance name
28       default: ZRDM1MMEX36FSB001
29     fsb1_vfc_type_tag: # from HEAT ENV
30       type: string
31       description: VFC type tag
32     fsb1_vfc_image_name: # from HEAT ENV
33       type: string
34       description: VFC image name
35       default: MME_FSB1_16ACP03.qcow2
36     fsb1_vfc_flavor: # from HEAT ENV
37       type: string
38       description: VFC flavor
39       default: m4.xlarge4
40     fsb2_vfc_instance_name: # from HEAT ENV
41       type: string
42       description: VFC instance name
43       default: ZRDM1MMEX36FSB002
44     fsb2_vfc_type_tag: # from HEAT ENV
45       type: string
46       description: VFC type tag
47     fsb2_vfc_image_name: # from HEAT ENV
48       type: string
49       description: VFC image name
50       default: MME_FSB2_16ACP03.qcow2
51     fsb2_vfc_flavor: # from HEAT ENV
52       type: string
53       description: VFC flavor
54       defualt: m4.xlarge4
55     ncb1_vfc_instance_name: # from HEAT ENV
56       type: string
57       description: VFC instance name
58       default: ZRDM1MMEX36FSB001
59     ncb1_vfc_type_tag: # from HEAT ENV
60       type: string
61       description: VFC type tag
62     ncb1_vfc_image_name: # from HEAT ENV
63       type: string
64       description: VFC image name
65       default: MME_NCB1_16ACP03.qcow2
66     ncb1_vfc_flavor: # from HEAT ENV
67       type: string
68       description: VFC flavor
69       default: m4.xlarge4
70     ncb2_vfc_instance_name: # from HEAT ENV
71       type: string
72       description: VFC instance name
73       default: ZRDM1MMEX36FSB001
74     ncb2_vfc_type_tag: # from HEAT ENV
75       type: string
76       description: VFC type tag
77     ncb2_vfc_image_name: # from HEAT ENV
78       type: string
79       description: VFC image name
80       default: MME_NCB2_16ACP03.qcow2
81     ncb2_vfc_flavor: # from HEAT ENV
82       type: string
83       description: VFC flavor
84       default: m4.xlarge4
85     gpb1_vfc_instance_name: # from HEAT ENV
86       type: string
87       description: VFC instance name
88       default: ZRDM1MMEX36FSB001
89     gpb1_vfc_type_tag: # from HEAT ENV
90       type: string
91       description: VFC type tag
92     gpb1_vfc_image_name: # from HEAT ENV
93       type: string
94       description: VFC image name
95       default: MME_GPB1_16ACP03.qcow2
96     gpb1_vfc_flavor: # from HEAT ENV
97       type: string
98       description: VFC flavor
99       default: m4.xlarge4
100     gpb2_vfc_instance_name: # from HEAT ENV
101       type: string
102       description: VFC instance name
103       default: ZRDM1MMEX36FSB001
104     gpb2_vfc_type_tag: # from HEAT ENV
105       type: string
106       description: VFC type tag
107     gpb2_vfc_image_name: # from HEAT ENV
108       type: string
109       description: VFC image name
110       default: MME_GPB2_16ACP03.qcow2
111     gpb2_vfc_flavor: # from HEAT ENV
112       type: string
113       description: VFC flavor
114       default: m4.xlarge4
115     vlc1_vfc_instance_name: # from HEAT ENV
116       type: string
117       description: VFC instance name
118       default: ZRDM1MMEX36FSB001
119     vlc1_vfc_type_tag: # from HEAT ENV
120       type: string
121       description: VFC type tag
122     vlc1_vfc_image_name: # from HEAT ENV
123       type: string
124       description: VFC image name
125       default: MME_VLC1_16ACP03.qcow2
126     vlc1_vfc_flavor: # from HEAT ENV
127       type: string
128       description: VFC flavor
129       default: m4.xlarge4
130     vlc2_vfc_instance_name: # from HEAT ENV
131       type: string
132       description: VFC instance name
133       default: ZRDM1MMEX36FSB001
134     vlc2_vfc_type_tag: # from HEAT ENV
135       type: string
136       description: VFC type tag
137     vlc2_vfc_image_name: # from HEAT ENV
138       type: string
139       description: VFC image name
140       default: MME_VLC2_16ACP03.qcow2
141     vlc2_vfc_flavor: # from HEAT ENV
142       type: string
143       description: VFC flavor
144       default: m4.xlarge4
145     
146     fsb1_oam_ip_address: # from HEAT ENV
147       type: string
148       description: OAM ip address
149       default: 107.250.172.221
150     fsb1_internal1_mac_address: # from HEAT_ENV
151       type: string
152       description: Internal connection point mac_address
153       default: 00:80:37:0E:0B:12
154     fsb1_internal2_mac_address: # from HEAT_ENV
155       type: string
156       description: Internal connection point mac_address
157       default: 00:81:37:0E:0B:12
158     fsb2_oam_ip_address: # from HEAT ENV
159       type: string
160       description: OAM ip address
161       default: 107.250.172.221
162     fsb2_internal1_mac_address: # from HEAT_ENV
163       type: string
164       description: Internal connection point mac_address
165       default: 00:80:37:0E:0B:12
166     fsb2_internal2_mac_address: # from HEAT_ENV
167       type: string
168       description: Internal connection point mac_address
169       default: 00:81:37:0E:0B:12
170     
171     ncb1_internal1_mac_address: # from HEAT_ENV
172       type: string
173       description: Internal connection point mac_address
174       default: 00:80:37:0E:0B:12
175     ncb1_internal2_mac_address: # from HEAT_ENV
176       type: string
177       description: Internal connection point mac_address
178       default: 00:81:37:0E:0B:12
179     ncb2_internal1_mac_address: # from HEAT_ENV
180       type: string
181       description: Internal connection point mac_address
182       default: 00:80:37:0E:0B:12
183     ncb2_internal2_mac_address: # from HEAT_ENV
184       type: string
185       description: Internal connection point mac_address
186       default: 00:81:37:0E:0B:12
187     gpb1_internal1_mac_address: # from HEAT_ENV
188       type: string
189       description: Internal connection point mac_address
190       default: 00:80:37:0E:0B:12
191     gpb1_internal2_mac_address: # from HEAT_ENV
192       type: string
193       description: Internal connection point mac_address
194       default: 00:81:37:0E:0B:12
195     gpb2_internal1_mac_address: # from HEAT_ENV
196       type: string
197       description: Internal connection point mac_address
198       default: 00:80:37:0E:0B:12
199     gpb2_internal2_mac_address: # from HEAT_ENV
200       type: string
201       description: Internal connection point mac_address
202       default: 00:81:37:0E:0B:12
203     vlc1_oam_ip_address: # from HEAT ENV
204       type: string
205       description: OAM ip address
206       default: 107.250.172.221
207     vlc1_gtp_ip_address: # from HEAT ENV
208       type: string
209       description: OAM ip address
210       default: 107.250.172.221
211     vlc1_sctp_a_ip_address: # from HEAT ENV
212       type: string
213       description: OAM ip address
214       default: 107.250.172.221
215     vlc1_sctp_b_ip_address: # from HEAT ENV
216       type: string
217       description: OAM ip address
218       default: 107.250.172.221           
219     vlc1_internal1_mac_address: # from HEAT_ENV
220       type: string
221       description: Internal connection point mac_address
222       default: 00:80:37:0E:0B:12
223     vlc1_internal2_mac_address: # from HEAT_ENV
224       type: string
225       description: Internal connection point mac_address
226       default: 00:81:37:0E:0B:12  
227     vlc2_oam_ip_address: # from HEAT ENV
228       type: string
229       description: OAM ip address
230       default: 107.250.172.221
231     vlc2_gtp_ip_address: # from HEAT ENV
232       type: string
233       description: OAM ip address
234       default: 107.250.172.221
235     vlc2_sctp_a_ip_address: # from HEAT ENV
236       type: string
237       description: OAM ip address
238       default: 107.250.172.221
239     vlc2_sctp_b_ip_address: # from HEAT ENV
240       type: string
241       description: OAM ip address
242       default: 107.250.172.221           
243     vlc2_internal1_mac_address: # from HEAT_ENV
244       type: string
245       description: Internal connection point mac_address
246       default: 00:80:37:0E:0B:12
247     vlc2_internal2_mac_address: # from HEAT_ENV
248       type: string
249       description: Internal connection point mac_address
250       default: 00:81:37:0E:0B:12  
251     Internal1_net_dhcp:
252       hidden: false
253       immutable: false
254       type: string
255       default: 'False'
256     Internal1_net_cidr:
257       hidden: false
258       immutable: false
259       type: string
260       default: 169.253.0.0/17
261     Internal1_net_gateway_ip:
262       hidden: false
263       immutable: false
264       type: string
265       default: 169.253.0.3
266     Internal2_net_dhcp:
267       hidden: false
268       immutable: false
269       type: string
270       default: 'False'
271     Internal2_net_cidr:
272       hidden: false
273       immutable: false
274       type: string
275       default: 169.255.0.0/17
276     Internal2_net_gateway_ip:
277       hidden: false
278       immutable: false
279       type: string
280       default: 169.255.0.3
281     network_deployment_node:
282       type: string
283       description: The target LCP node for deployment of this Network instance
284     oam_net_id:
285       hidden: false
286       immutable: false
287       type: string
288       description: uuid of oam network
289       default: 47bf4cca-0961-422f-bcd6-d5a4fbb1a351
290
291   node_templates:
292
293     # VFCs / VMs
294     FSB1: # VFC1 / VM1
295       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
296
297       metadata:
298         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
299         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
300         version: 1.0
301         name: Nova Server
302         description: VFC based on OpenStack Nova Server
303         type: VFC
304         category: Generic
305         resourceSubcategory: Infrastructure
306         vendor: Ericsson
307       properties:
308         vfc_ecomp_name: false
309         vfc_instance_name: {get_input: fsb1_vfc_instance_name} 
310         vfc_type_tag: {get_input: fsb1_vfc_type_tag} 
311         vfc_description: FSB1
312         vfc_image_name: {get_input: fsb1_vfc_image_name} 
313       requirements:
314          - binding:
315               capability: tosca.capabilities.network.Bindable
316               node: fsb1_oam
317               relationship: tosca.relationships.network.BindsTo
318          - binding:
319               capability: tosca.capabilities.network.Bindable
320               node: fsb1_internal1
321               relationship: tosca.relationships.network.BindsTo
322          - binding: 
323               capability: tosca.capabilities.network.Bindable
324               node: fsb1_internal2
325               relationship: tosca.relationships.network.BindsTo
326       capabilities:
327         nfv_compute:
328           properties:
329             vfc_flavor: {get_input: fsb1_vfc_flavor}
330         scaling_capability:
331           properties:
332             min_instances: 1
333             max_instances: 1
334             init_instances: 1
335         monitoring_capabilty:
336           properties:
337             name: high_cpu
338             
339
340     FSB2: # VFC2 / VM2
341       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
342
343       metadata:
344         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
345         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
346         version: 1.0
347         name: Nova Server
348         description: VFC based on OpenStack Nova Server
349         type: VFC
350         category: Generic
351         resourceSubcategory: Infrastructure
352         vendor: Ericsson
353       properties:
354         vfc_ecomp_name: false
355         vfc_instance_name: {get_input: fsb2_vfc_instance_name} 
356         vfc_type_tag: {get_input: fsb2_vfc_type_tag} 
357         vfc_description: FSB2
358         vfc_image_name: {get_input: fsb2_vfc_image_name} 
359
360       requirements:
361          - binding:
362               capability: tosca.capabilities.network.Bindable
363               node: fsb2_oam
364               relationship: tosca.relationships.network.BindsTo
365          - binding:
366               capability: tosca.capabilities.network.Bindable
367               node: fsb2_internal1
368               relationship: tosca.relationships.network.BindsTo
369          - binding: 
370               capability: tosca.capabilities.network.Bindable
371               node: fsb2_internal2
372               relationship: tosca.relationships.network.BindsTo
373       capabilities:
374         nfv_compute:
375           properties:
376             vfc_flavor: {get_input: fsb2_vfc_flavor}
377         scaling_capability:
378           properties:
379             min_instances: 1
380             max_instances: 1
381             init_instances: 1
382         monitoring_capability:
383           properties:
384             name: cpu_load
385
386     NCB1: # VFC3 / MV3
387       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
388
389       metadata:
390         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
391         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
392         version: 1.0
393         name: Nova Server
394         description: VFC based on OpenStack Nova Server
395         type: VFC
396         category: Generic
397         resourceSubcategory: Infrastructure
398         vendor: Ericsson
399       properties:
400         vfc_ecomp_name: false
401         vfc_instance_name: {get_input: ncb1_vfc_instance_name} 
402         vfc_type_tag: {get_input: ncb1_vfc_type_tag} 
403         vfc_description: NCB1
404         vfc_image_name: {get_input: ncb1_vfc_image_name} 
405
406       requirements:
407          - binding:
408               capability: tosca.capabilities.network.Bindable
409               node: ncb1_oam
410               relationship: tosca.relationships.network.BindsTo
411          - binding:
412               capability: tosca.capabilities.network.Bindable
413               node: ncb1_internal1
414               relationship: tosca.relationships.network.BindsTo
415          - binding: 
416               capability: tosca.capabilities.network.Bindable
417               node: ncb1_internal2
418               relationship: tosca.relationships.network.BindsTo
419       capabilities:
420         nfv_compute:
421           properties:
422             vfc_flavor: {get_input: ncb1_vfc_flavor}
423         scaling_capability:
424           properties:
425             min_instances: 1
426             max_instances: 1
427             init_instances: 1
428         monitoring_capability:
429           properties:
430             name: cpu_load
431
432     NCB2: # VFC4 / VM4
433       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
434
435       metadata:
436         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
437         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
438         version: 1.0
439         name: Nova Server
440         description: VFC based on OpenStack Nova Server
441         type: VFC
442         category: Generic
443         resourceSubcategory: Infrastructure
444         vendor: Ericsson
445       properties:
446         vfc_ecomp_name: false
447         vfc_instance_name: {get_input: ncb2_vfc_instance_name} 
448         vfc_type_tag: {get_input: ncb2_vfc_type_tag} 
449         vfc_description: NCB2
450         vfc_image_name: {get_input: ncb2_vfc_image_name} 
451
452       requirements:
453          - binding:
454               capability: tosca.capabilities.network.Bindable
455               node: ncb2_oam
456               relationship: tosca.relationships.network.BindsTo
457          - binding:
458               capability: tosca.capabilities.network.Bindable
459               node: ncb2_internal1
460               relationship: tosca.relationships.network.BindsTo
461          - binding: 
462               capability: tosca.capabilities.network.Bindable
463               node: ncb2_internal2
464               relationship: tosca.relationships.network.BindsTo
465       capabilities:
466         nfv_compute:
467           properties:
468             vfc_flavor: {get_input: ncb2_vfc_flavor}
469         scaling_capability:
470           properties:
471             min_instances: 1
472             max_instances: 1
473             init_instances: 1
474         monitoring_capability:
475           properties:
476             name: cpu_load
477
478     GPB1: # VFC5 / VM5
479       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
480
481       metadata:
482         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
483         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
484         version: 1.0
485         name: Nova Server
486         description: VFC based on OpenStack Nova Server
487         type: VFC
488         category: Generic
489         resourceSubcategory: Infrastructure
490         vendor: Ericsson
491       properties:
492         vfc_ecomp_name: false
493         vfc_instance_name: {get_input: gpb1_vfc_instance_name} 
494         vfc_type_tag: {get_input: gpb1_vfc_type_tag} 
495         vfc_description: GPB1
496         vfc_image_name: {get_input: gpb1_vfc_image_name} 
497
498       requirements:
499          - binding:
500               capability: tosca.capabilities.network.Bindable
501               node: gpb1_oam
502               relationship: tosca.relationships.network.BindsTo
503          - binding:
504               capability: tosca.capabilities.network.Bindable
505               node: gpb1_internal1
506               relationship: tosca.relationships.network.BindsTo
507          - binding: 
508               capability: tosca.capabilities.network.Bindable
509               node: gpb1_internal2
510               relationship: tosca.relationships.network.BindsTo
511       capabilities:
512         nfv_compute:
513           properties:
514             vfc_flavor: {get_input: gpb1_vfc_flavor}
515         scaling_capability:
516           properties:
517             min_instances: 1
518             max_instances: 1
519             init_instances: 1
520         monitoring_capability:
521           properties:
522             name: cpu_load
523     
524     GPB2: # VFC6 / VM6
525       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
526
527       metadata:
528         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
529         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
530         version: 1.0
531         name: Nova Server
532         description: VFC based on OpenStack Nova Server
533         type: VFC
534         category: Generic
535         resourceSubcategory: Infrastructure
536         vendor: Ericsson
537       properties:
538         vfc_ecomp_name: false
539         vfc_instance_name: {get_input: gpb2_vfc_instance_name} 
540         vfc_type_tag: {get_input: gpb2_vfc_type_tag} 
541         vfc_description: GPB2
542         vfc_image_name: {get_input: gpb2_vfc_image_name} 
543
544       requirements:
545          - binding:
546               capability: tosca.capabilities.network.Bindable
547               node: gpb2_oam
548               relationship: tosca.relationships.network.BindsTo
549          - binding:
550               capability: tosca.capabilities.network.Bindable
551               node: gpb2_internal1
552               relationship: tosca.relationships.network.BindsTo
553          - binding: 
554               capability: tosca.capabilities.network.Bindable
555               node: gpb2_internal2
556               relationship: tosca.relationships.network.BindsTo
557       capabilities:
558         nfv_compute:
559           properties:
560             vfc_flavor: {get_input: gpb2_vfc_flavor}
561         scaling_capability:
562           properties:
563             min_instances: 1
564             max_instances: 1
565             init_instances: 1
566         monitoring_capability:
567           properties:
568             name: cpu_load
569
570     VLC1: # VFC7 / VM7
571       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
572
573       metadata:
574         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
575         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
576         version: 1.0
577         name: Nova Server
578         description: VFC based on OpenStack Nova Server
579         type: VFC
580         category: Generic
581         resourceSubcategory: Infrastructure
582         vendor: Ericsson
583       properties:
584         vfc_ecomp_name: false
585         vfc_instance_name: {get_input: vlc1_vfc_instance_name} 
586         vfc_type_tag: {get_input: vlc1_vfc_type_tag} 
587         vfc_description: VLC1
588         vfc_image_name: {get_input: vlc1_vfc_image_name} 
589
590       requirements:
591          - binding:
592               capability: tosca.capabilities.network.Bindable
593               node: vlc1_oam
594               relationship: tosca.relationships.network.BindsTo
595          - binding:
596               capability: tosca.capabilities.network.Bindable
597               node: vlc1_internal1
598               relationship: tosca.relationships.network.BindsTo
599          - binding: 
600               capability: tosca.capabilities.network.Bindable
601               node: vlc1_internal2
602               relationship: tosca.relationships.network.BindsTo
603       capabilities:
604         nfv_compute:
605           properties:
606             vfc_flavor: {get_input: vlc1_vfc_flavor}
607         scaling_capability:
608           properties:
609             min_instances: 1
610             max_instances: 1
611             init_instances: 1
612         monitoring_capability:
613           properties:
614             name: cpu_load
615
616     VLC2: # VFC8 / VM8
617       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
618
619       metadata:
620         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
621         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
622         version: 1.0
623         name: Nova Server
624         description: VFC based on OpenStack Nova Server
625         type: VFC
626         category: Generic
627         resourceSubcategory: Infrastructure
628         vendor: Ericsson
629       properties:
630         vfc_ecomp_name: false
631         vfc_instance_name: {get_input: vlc2_vfc_instance_name} 
632         vfc_type_tag: {get_input: vlc2_vfc_type_tag} 
633         vfc_description: VLC2
634         vfc_image_name: {get_input: vlc2_vfc_image_name} 
635
636       requirements:
637          - binding:
638               capability: tosca.capabilities.network.Bindable
639               node: vlc2_oam
640               relationship: tosca.relationships.network.BindsTo
641          - binding:
642               capability: tosca.capabilities.network.Bindable
643               node: vlc2_internal1
644               relationship: tosca.relationships.network.BindsTo
645          - binding: 
646               capability: tosca.capabilities.network.Bindable
647               node: vlc2_internal2
648               relationship: tosca.relationships.network.BindsTo
649       capabilities:
650         nfv_compute:
651           properties:
652             vfc_flavor: {get_input: vlc2_vfc_flavor}
653         scaling_capability:
654           properties:
655             min_instances: 1
656             max_instances: 1
657             init_instances: 1
658         monitoring_capability:
659           properties:
660             name: cpu_load
661       
662       
663   # Connection Points
664
665     fsb1_oam: # VFC1 OAM CP
666       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
667       properties:
668         address_Info:
669           ip_address: {get_input: fsb1_oam_ip_address}
670       requirements:
671         - binding:
672               capability: tosca.capabilities.network.Bindable
673               node: FSB1
674               relationship: tosca.relationships.network.BindsTo
675         - link:
676               capability: tosca.capabilities.network.Bindable
677               node: oam_net
678               relationship: tosca.relationships.network.BindsTo
679
680     fsb1_internal1: # VFC1 Internal1 CP
681       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
682       properties:
683         address_info:
684           mac_address:  {get_input: fsb1_internal1_mac_address}
685       requirements:
686         - binding:
687               capability: tosca.capabilities.network.Bindable
688               node: FSB1
689               relationship: tosca.relationships.network.BindsTo
690         - link:
691               capability: tosca.capabilities.network.Bindable
692               node: Internal1_net
693               relationship: tosca.relationships.network.BindsTo
694         
695     fsb1_internal2: # VFC1 Internal2 CP
696       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
697       properties:
698         address_info:
699           mac_address: {get_input: fsb1_internal2_mac_address} 
700       requirements:
701         - binding:
702               capability: tosca.capabilities.network.Bindable
703               node: FSB1
704               relationship: tosca.relationships.network.BindsTo
705         - link:
706               capability: tosca.capabilities.network.Bindable
707               node: Internal2_net
708               relationship: tosca.relationships.network.BindsTo
709
710     fsb2_oam: # VFC2 OAM CP
711       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
712       properties:
713         address_Info:
714           ip_address: {get_input: fsb2_oam_ip_address}
715       requirements:
716         - binding:
717               capability: tosca.capabilities.network.Bindable
718               node: FSB2
719               relationship: tosca.relationships.network.BindsTo
720         - link:
721               capability: tosca.capabilities.network.Bindable
722               node: oam_net
723               relationship: tosca.relationships.network.BindsTo
724
725     fsb2_internal1: # VFC2 Internal1 CP
726       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
727       properties:
728         address_info:
729           mac_address: {get_input: fsb2_internal1_mac_address}  
730       requirements:
731         - binding:
732               capability: tosca.capabilities.network.Bindable
733               node: FSB2
734               relationship: tosca.relationships.network.BindsTo
735         - link:
736               capability: tosca.capabilities.network.Bindable
737               node: Internal1_net
738               relationship: tosca.relationships.network.BindsTo
739
740     fsb2_internal2: # VFC2 Internal2 CP
741       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
742       properties:
743         address_info:
744           mac_address: {get_input: fsb2_internal2_mac_address} 
745       requirements:
746         - binding:
747               capability: tosca.capabilities.network.Bindable
748               node: FSB2
749               relationship: tosca.relationships.network.BindsTo
750         - link:
751               capability: tosca.capabilities.network.Bindable
752               node: Internal2_net
753               relationship: tosca.relationships.network.BindsTo
754
755     ncb1_internal1: # VFC3 Internal1 CP
756       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
757       properties:
758         address_info:
759           mac_address: {get_input: ncb1_internal1_mac_address} 
760       requirements:
761         - binding:
762               capability: tosca.capabilities.network.Bindable
763               node: NCB1
764               relationship: tosca.relationships.network.BindsTo
765         - link:
766               capability: tosca.capabilities.network.Bindable
767               node: Internal1_net
768               relationship: tosca.relationships.network.BindsTo
769
770     ncb1_internal2: # VFC3 Internal2 CP
771       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
772       properties:
773         address_info:
774           mac_address: {get_input: ncb1_internal2_mac_address} 
775       requirements:
776         - binding:
777               capability: tosca.capabilities.network.Bindable
778               node: NCB1
779               relationship: tosca.relationships.network.BindsTo
780         - link:
781               capability: tosca.capabilities.network.Bindable
782               node: Internal2_net
783               relationship: tosca.relationships.network.BindsTo
784
785     ncb2_internal1: # VFC4 Internal1 CP
786       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
787       properties:
788         address_info:
789           mac_address: {get_input: ncb2_internal1_mac_address} 
790       requirements:
791         - binding:
792               capability: tosca.capabilities.network.Bindable
793               node: NCB2
794               relationship: tosca.relationships.network.BindsTo
795         - link:
796               capability: tosca.capabilities.network.Bindable
797               node: Internal1_net
798               relationship: tosca.relationships.network.BindsTo
799
800     ncb2_internal2: # VFC4 Internal2 CP
801       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
802       properties:
803         address_info:
804           mac_address: {get_input: ncb2_internal2_mac_address} 
805       requirements:
806         - binding:
807               capability: tosca.capabilities.network.Bindable
808               node: NCB2
809               relationship: tosca.relationships.network.BindsTo
810         - link:
811               capability: tosca.capabilities.network.Bindable
812               node: Internal2_net
813               relationship: tosca.relationships.network.BindsTo
814
815     gpb1_internal1: # VFC5 Internal1 CP
816       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
817       properties:
818         address_info:
819           mac_address: {get_input: gpb1_internal1_mac_address} 
820       requirements:
821         - binding:
822               capability: tosca.capabilities.network.Bindable
823               node: GPB1
824               relationship: tosca.relationships.network.BindsTo
825         - link:
826               capability: tosca.capabilities.network.Bindable
827               node: Internal1_net
828               relationship: tosca.relationships.network.BindsTo
829
830     gpb1_internal2: # VFC5 Internal2 CP
831       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
832       properties:
833         address_info:
834           mac_address: {get_input: gpb1_internal2_mac_address} 
835       requirements:
836         - binding:
837               capability: tosca.capabilities.network.Bindable
838               node: GPB1
839               relationship: tosca.relationships.network.BindsTo
840         - link:
841               capability: tosca.capabilities.network.Bindable
842               node: Internal2_net
843               relationship: tosca.relationships.network.BindsTo
844
845     gpb2_internal1: # VFC6 Internal1 CP
846       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
847       properties:
848         address_info:
849           mac_address: {get_input: gpb2_internal1_mac_address} 
850       requirements:
851         - binding:
852               capability: tosca.capabilities.network.Bindable
853               node: GPB2
854               relationship: tosca.relationships.network.BindsTo
855         - link:
856               capability: tosca.capabilities.network.Bindable
857               node: Internal1_net
858               relationship: tosca.relationships.network.BindsTo
859
860     gpb2_internal2: # VFC6 Internal2 CP
861       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
862       properties:
863         address_info:
864           mac_address: {get_input: gpb2_internal2_mac_address} 
865       requirements:
866         - binding:
867               capability: tosca.capabilities.network.Bindable
868               node: GPB2
869               relationship: tosca.relationships.network.BindsTo
870         - link:
871               capability: tosca.capabilities.network.Bindable
872               node: Internal2_net
873               relationship: tosca.relationships.network.BindsTo
874
875     vlc1_oam: # VFC7 OAM CP
876       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
877       properties:
878         address_Info:
879           ip_address: {get_input: vlc1_oam_ip_address}
880       requirements:
881         - binding:
882               capability: tosca.capabilities.network.Bindable
883               node: VLC1
884               relationship: tosca.relationships.network.BindsTo
885         - link:
886               capability: tosca.capabilities.network.Bindable
887               node: oam_net
888               relationship: tosca.relationships.network.BindsTo
889
890     vlc1_internal2: # VFC7 Internal2 CP
891       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
892       properties:
893         address_info:
894           mac_address: {get_input: vlc1_internal2_mac_address} 
895       requirements:
896         - binding:
897               capability: tosca.capabilities.network.Bindable
898               node: VLC1
899               relationship: tosca.relationships.network.BindsTo
900         - link:
901               capability: tosca.capabilities.network.Bindable
902               node: Internal2_net
903               relationship: tosca.relationships.network.BindsTo
904
905     vlc1_sctp_a: # VFC7 eca_sctp_a CP
906       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
907       properties:
908         address_Info:
909           ip_address: {get_input: vlc2_sctp_a_ip_address}
910       requirements:
911         - binding:
912               capability: tosca.capabilities.network.Bindable
913               node: VLC1
914               relationship: tosca.relationships.network.BindsTo
915         # - link:
916               # capability: tosca.capabilities.network.Bindable
917               # node: sctp_a_net
918               # relationship: tosca.relationships.network.BindsTo
919
920     vlc1_sctp_b: # VFC7 eca_sctp_b CP
921       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
922       properties:
923         address_Info:
924           ip_address: {get_input: vlc2_sctp_b_ip_address}
925       requirements:
926         - binding:
927               capability: tosca.capabilities.network.Bindable
928               node: VLC1
929               relationship: tosca.relationships.network.BindsTo
930         # - link:
931               # capability: tosca.capabilities.network.Bindable
932               # node: sctp_b_net
933               # relationship: tosca.relationships.network.BindsTo
934
935     vlc1_gtp_net: # VFC7 Internal2 CP
936       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
937       properties:
938         address_Info:
939           ip_address: {get_input: vlc1_gtp_ip_address}
940       requirements:
941         - binding:
942               capability: tosca.capabilities.network.Bindable
943               node: VLC1
944               relationship: tosca.relationships.network.BindsTo
945         # - link:
946               # capability: tosca.capabilities.network.Bindable
947               # node: gtp_net
948               # relationship: tosca.relationships.network.BindsTo
949
950     vlc2_oam: # VFC8 OAM CP
951       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
952       properties:
953         address_Info:
954           ip_address: {get_input: vlc2_oam_ip_address}
955       requirements:
956         - binding:
957               capability: tosca.capabilities.network.Bindable
958               node: VLC2
959               relationship: tosca.relationships.network.BindsTo
960         - link:
961               capability: tosca.capabilities.network.Bindable
962               node: oam_net
963               relationship: tosca.relationships.network.BindsTo
964
965     vlc2_internal1: # VFC8 Internal1 CP
966       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
967       properties:
968         address_info:
969           mac_address: {get_input: vlc2_internal1_mac_address} 
970       requirements:
971         - binding:
972               capability: tosca.capabilities.network.Bindable
973               node: VLC2
974               relationship: tosca.relationships.network.BindsTo
975         - link:
976               capability: tosca.capabilities.network.Bindable
977               node: Internal1_net
978               relationship: tosca.relationships.network.BindsTo
979
980     vlc2_internal2: # VFC8 Internal2 CP
981       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
982       properties:
983         address_info:
984           mac_address: {get_input: vlc2_internal2_mac_address} 
985       requirements:
986         - binding:
987               capability: tosca.capabilities.network.Bindable
988               node: VLC2
989               relationship: tosca.relationships.network.BindsTo
990         - link:
991               capability: tosca.capabilities.network.Bindable
992               node: Internal2_net
993               relationship: tosca.relationships.network.BindsTo
994
995     vlc2_sctp_a: # VFC8 eca_sctp_a CP
996       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
997       properties:
998         address_Info:
999           ip_address: {get_input: vlc2_sctp_a_ip_address}
1000       requirements:
1001         - binding:
1002               capability: tosca.capabilities.network.Bindable
1003               node: VLC2
1004               relationship: tosca.relationships.network.BindsTo
1005         # - link:
1006               # capability: tosca.capabilities.network.Bindable
1007               # node: sctp_a_net
1008               # relationship: tosca.relationships.network.BindsTo
1009
1010     vlc2_sctp_b: # VFC8 eca_sctp_b CP
1011       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1012       properties:
1013         address_Info:
1014           ip_address: {get_input: vlc2_sctp_b_ip_address}
1015       requirements:
1016         - binding:
1017               capability: tosca.capabilities.network.Bindable
1018               node: VLC2
1019               relationship: tosca.relationships.network.BindsTo
1020         # - link:
1021               # capability: tosca.capabilities.network.Bindable
1022               # node: sctp_b_net
1023               # relationship: tosca.relationships.network.BindsTo
1024
1025     vlc2_gtp_net: # VFC8 gtp CP
1026       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1027       properties:
1028         address_Info:
1029           ip_address: {get_input: vlc2_gtp_ip_address}
1030       requirements:
1031         - binding:
1032               capability: tosca.capabilities.network.Bindable
1033               node: VLC2
1034               relationship: tosca.relationships.network.BindsTo
1035         # - link:
1036               # capability: tosca.capabilities.network.Bindable
1037               # node: gtp_net
1038               # relationship: tosca.relationships.network.BindsTo
1039
1040   # Virtual Links (Networks)
1041   
1042     Internal1_net:
1043       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
1044
1045       metadata:
1046         invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c
1047         UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234
1048         version: 1.0
1049         name: Network
1050         description: Internal Network
1051         type: VL
1052         category: Generic
1053         subcategory: Infrastructure
1054         vendor: AT&T
1055       properties:
1056         network_type: Tenant_Layer_3
1057         network_role: 
1058         network_technology: Contrail
1059         network_ecomp_name: false
1060         network_homing: false
1061         network_deployment_node: { get_input : network_deployment_node }
1062         contrail_virtual_network:
1063           vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_1
1064           vn_forwarding_mode: l2
1065           vn_shared: false
1066           vn_external: false
1067         layer_protocol: IP
1068         flow_pattern: E-LAN
1069         test_access: none
1070         ip_version: 4
1071         enable_dhcp: {get_input: Internal1_net_enable_dhcp}
1072         cidr: {get_input: Internal1_net_cidr}
1073         gateway_ip: {get_input: Internal1_net_gateway_ip}
1074      
1075     Internal2_net:
1076       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
1077       metadata:
1078         invariantUUID: 14a25c59-e2c2-4f86-880d-371d4d9dc88c
1079         UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da1234
1080         version: 1.0
1081         name: Network
1082         description: Internal Network
1083         type: VL
1084         category: Generic
1085         subcategory: Infrastructure
1086         vendor: AT&T
1087       properties:
1088         network_type: Tenant_Layer_3
1089         network_role: 
1090         network_technology: Contrail
1091         network_ecomp_name: false
1092         network_homing: false
1093         network_deployment_node: { get_input : network_deployment_node }
1094         contrail_virtual_network:
1095           vn_name: MME-24474-Ericsson-WTC-lab_int_MMEX36_net_2
1096           vn_forwarding_mode: l2
1097           vn_shared: false
1098           vn_external: false
1099         layer_protocol: IP
1100         flow_pattern: E-LAN
1101         test_access: none
1102         ip_version: 4
1103         enable_dhcp: {get_input: Internal2_net_enable_dhcp}
1104         cidr: {get_input: Internal2_net_cidr}
1105         gateway_ip: {get_input: Internal2_net_gateway_ip}
1106   
1107     
1108     oam_net:
1109       type: org.openecomp.resource.vl.OAM
1110
1111       metadata:
1112         invariantUUID: 18643c59-e2c2-4f86-880d-371d4d9dc52a
1113         UUID: 1a20ed2e-abcd-3f20-ca4e-cc7af4da7fcc
1114         version: 2.0
1115         name: Mobility OAM Network
1116         description: Mobility OAM Network
1117         type: VL
1118         category: VL
1119         vendor: AT&T
1120
1121       properties:
1122         network_type: vIPR_ATM_OAM
1123         network_technology: Contrail
1124         network_id: {get_input: oam_net_id}
1125         layer_protocol: IP
1126         flow_pattern: E-LAN
1127         test_access: none
1128       
1129   
1130   groups:
1131
1132     # VF Modules
1133     vfmoduleVmmeModule-1:
1134       type: org.openecomp.groups.VfModule
1135
1136       metadata:
1137         vfModuleModelName: vMME::module-1
1138         vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c
1139         vfModuleModelUUID: b220ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc
1140         vfModuleModelVersion: 1
1141
1142       properties:
1143         vf_module_type: Expansion # set by service designer
1144         vf_module_label: vMME Expansion VF Module # set by service designer
1145         vf_module_description: vMME expansion VF Module # set by service designer
1146         contrail_service_instance: true # from HEAT
1147         availability_zone_count: 2 # from HEAT
1148         volume_group: false # from HEAT / service Designer
1149         artifacts: # HEAT Templates
1150           - /Artifacts/vmme_small_create_fsb.yml
1151           - /Artifacts/vmme_small.yml
1152       
1153       members:
1154       - FSB1
1155       - FSB2
1156       - NCB1
1157       - NCB2
1158       - VLC2
1159       - oam_net
1160       - vlc2_gtp_net
1161       - Internal1_net
1162       - fsb1_oam
1163       - Internal2_net
1164
1165
1166    
1167     # HEAT Stacks 
1168
1169     vmme_small:
1170       type: org.openecomp.groups.heat.HeatStack
1171       properties:
1172         heat_file: ../Artifacts/vmme_small.yml
1173         description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc
1174
1175       members: [ FSB1, FSB2, NCB1, NCB2, VLC1, VLC2, GPB1, GPB2, Internal1_net, Internal2_net, fsb1_oam, 
1176                 fsb1_internal1, fsb1_internal2, fsb2_oam, fsb2_internal2, ncb1_internal1, ncb1_internal2,
1177                 ncb2_internal1, ncb2_internal2, gpb1_internal1, gpb1_internal2, gpb2_internal1,
1178                 gpb2_internal2, vlc1_oam, vlc1_internal1, vlc1_internal2, vlc1_sctp_a, vlc1_sctp_b, 
1179                 vlc1_gtp, vlc2_oam, vlc2_internal1, vlc2_internal2, vlc2_sctp_a, vlc2_sctp_b, vlc1_gtp ]
1180     
1181     vmme_small_create_fsb:
1182       type: org.openecomp.groups.heat.HeatStack
1183       properties:
1184         heat_file: ../Artifacts/vmme_small_create_fsb.yml
1185         description: server template for vMME
1186         
1187       members: [ FSB1_volume, FSB2_volume ]
1188
1189   policies:
1190     # Autoscaling policy
1191     - mme_autoscale_policy:
1192         type: org.openecomp.policy.Autoscaling
1193         properties:
1194           min_instances: 1
1195           max_instances: 4
1196           increment: 1
1197           factor: cpu_load
1198           threshold: 80%
1199
1200         target: [ vfmoduleVmmeModule-1]
1201         
1202   
1203   substitution_mapping:
1204       type: org.openecomp.resource.vf.vmme
1205       
1206       requirements:
1207         - vlc1_gtp_net.link: 
1208               capability: tosca.capabilities.network.Linkable
1209               relationship: tosca.relationships.network.LinksTo
1210         - vlc2_gtp_net.link: 
1211               capability: tosca.capabilities.network.Linkable
1212               relationship: tosca.relationships.network.LinksTo   
1213         - vlc1_sctp_a.link: 
1214               capability: tosca.capabilities.network.Linkable
1215               relationship: tosca.relationships.network.LinksTo
1216         - vlc1_sctp_b.link: 
1217               capability: tosca.capabilities.network.Linkable
1218               relationship: tosca.relationships.network.LinksTo