[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / subInterfaceToInterfaceConnection / vTSBC_AIC / expectedoutputfiles / perimeta_ha_swmuServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: perimeta_ha_swmu
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 node_types:
40   org.openecomp.resource.vfc.nodes.heat.vm_b:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42   org.openecomp.resource.vfc.nodes.heat.vm_a:
43     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
44 topology_template:
45   inputs:
46     vf_module_id:
47       hidden: false
48       immutable: false
49       type: string
50       description: Unique ID for this VF Module instance
51     untrusted_net_id:
52       hidden: false
53       immutable: false
54       type: string
55       description: Service network 2 network UUID
56       constraints: [
57         ]
58     mgmt_net_plen:
59       hidden: false
60       immutable: false
61       type: string
62       description: Prefix length of management network
63     perimeta_config:
64       hidden: false
65       immutable: false
66       type: string
67       description: Orchestration template configuration for instance.
68     vm_a_names:
69       hidden: false
70       immutable: false
71       type: list
72       description: List of names of Perimeta VM A instances, indexed by perimeta_instance_index
73       entry_schema:
74         type: string
75     serv3_vips:
76       hidden: false
77       immutable: false
78       type: list
79       description: List of service network 3 virtual IP addresses for all instances.
80       entry_schema:
81         type: string
82     untrusted_b_ips:
83       hidden: false
84       immutable: false
85       type: list
86       description: List of fixed IP addresses to use as untrusted fixed IPs of B instances.
87       entry_schema:
88         type: string
89     ha_net_id:
90       hidden: false
91       immutable: false
92       type: string
93       description: HA network id
94       constraints: [
95         ]
96     perimeta_param_server_group:
97       hidden: false
98       immutable: false
99       type: string
100       description: Server group to use for these VMs - ignored
101     untrusted_vlan_networks:
102       hidden: false
103       immutable: false
104       type: list
105       description: List of Contrail VLAN networks to use on the untrusted/access network.   The order and number of these must match the VLAN ID list.
106       entry_schema:
107         type: string
108     mgmt_sec_groups:
109       hidden: false
110       immutable: false
111       type: list
112       description: List of security groups to add on management interfaces.
113       entry_schema:
114         type: string
115     perimeta_instance_index:
116       hidden: false
117       immutable: false
118       type: float
119       description: Index of instance among multiple instances.  Use to retrieve correct parameter for this instance when passed all parameters for all instances.
120     untrusted_vlan_ids:
121       hidden: false
122       immutable: false
123       type: list
124       description: List of VLAN IDs to use on the untrusted/access network
125       entry_schema:
126         type: string
127     serv3_net_id:
128       hidden: false
129       immutable: false
130       type: string
131       description: Service network 3 network UUID
132     perimeta_keypair:
133       hidden: false
134       immutable: false
135       type: string
136       description: Keypair to use for accessing this Perimeta instance
137       constraints: [
138         ]
139     mgmt_vips:
140       hidden: false
141       immutable: false
142       type: list
143       description: List of management virtual IP addresses for all instances.
144       entry_schema:
145         type: string
146     untrusted_vips:
147       hidden: false
148       immutable: false
149       type: list
150       description: List of service network 2 virtual IP addresses for all instances.
151       entry_schema:
152         type: string
153     vnf_id:
154       hidden: false
155       immutable: false
156       type: string
157       description: VNF ID of this deployment
158     availability_zone_0:
159       hidden: false
160       immutable: false
161       type: string
162       description: Availability zone for A instances.
163     availability_zone_1:
164       hidden: false
165       immutable: false
166       type: string
167       description: Availability zone for B instances.  May be the same as A instance.
168     serv3_a_ips:
169       hidden: false
170       immutable: false
171       type: list
172       description: List of fixed IP addresses to use as serv3 fixed IPs of A instances.
173       entry_schema:
174         type: string
175     unused_net_id:
176       hidden: false
177       immutable: false
178       type: string
179       description: Service network unused port network UUID
180     ha_a_ips:
181       hidden: false
182       immutable: false
183       type: list
184       description: List of fixed IP addresses to use as HA IPs of A instances.
185       entry_schema:
186         type: string
187     untrusted_v6_vips:
188       hidden: false
189       immutable: false
190       type: list
191       description: List of service network 2 alternate virtual IP addresses for all instances.
192       entry_schema:
193         type: string
194     ha_sec_groups:
195       hidden: false
196       immutable: false
197       type: list
198       description: List of security groups to add on HA interfaces.
199       entry_schema:
200         type: string
201     trusted_a_ips:
202       hidden: false
203       immutable: false
204       type: list
205       description: List of fixed IP addresses to use as trusted fixed IPs of A instances.
206       entry_schema:
207         type: string
208     untrusted_num_vlans:
209       hidden: false
210       immutable: false
211       type: float
212       description: Number of VLANs to connect to on the untrusted/access network
213     system_names:
214       hidden: false
215       immutable: false
216       type: list
217       description: List of system names of Perimeta instances.  Name of a specific instance is indexed by perimeta_instance_index
218       entry_schema:
219         type: string
220     vm_b_names:
221       hidden: false
222       immutable: false
223       type: list
224       description: List of names of Perimeta VM A instances, indexed by perimeta_instance_index
225       entry_schema:
226         type: string
227     trusted_sec_groups:
228       hidden: false
229       immutable: false
230       type: list
231       description: List of security groups to add on trusted interfaces.
232       entry_schema:
233         type: string
234     serv3_sec_groups:
235       hidden: false
236       immutable: false
237       type: list
238       description: List of security groups to add on serv3 interfaces.
239       entry_schema:
240         type: string
241     trusted_vips:
242       hidden: false
243       immutable: false
244       type: list
245       description: List of service network 1 virtual IP addresses for all instances.
246       entry_schema:
247         type: string
248     trusted_net_id:
249       hidden: false
250       immutable: false
251       type: string
252       description: Service network 1 network UUID
253       constraints: [
254         ]
255     serv3_b_ips:
256       hidden: false
257       immutable: false
258       type: list
259       description: List of fixed IP addresses to use as serv3 fixed IPs of B instances.
260       entry_schema:
261         type: string
262     ha_b_ips:
263       hidden: false
264       immutable: false
265       type: list
266       description: List of fixed IP addresses to use as HA IPs of B instances.
267       entry_schema:
268         type: string
269     untrusted_a_v6_ips:
270       hidden: false
271       immutable: false
272       type: list
273       description: List of fixed IP addresses to use as untrusted alternate fixed IPs of A instances.
274       entry_schema:
275         type: string
276     untrusted_b_v6_ips:
277       hidden: false
278       immutable: false
279       type: list
280       description: List of fixed IP addresses to use as untrusted alternate fixed IPs of B instances.
281       entry_schema:
282         type: string
283     mgmt_a_ips:
284       hidden: false
285       immutable: false
286       type: list
287       description: List of fixed IP addresses to use as management IPs of A instances.
288       entry_schema:
289         type: string
290     vm_role:
291       hidden: false
292       immutable: false
293       type: string
294       description: Role of these VMs
295     trusted_b_ips:
296       hidden: false
297       immutable: false
298       type: list
299       description: List of fixed IP addresses to use as trusted fixed IPs of B instances.
300       entry_schema:
301         type: string
302     perimeta_image_name:
303       hidden: false
304       immutable: false
305       type: string
306       description: Glance image for Perimeta instance
307       constraints: [
308         ]
309     mgmt_net_default_gateway:
310       hidden: false
311       immutable: false
312       type: string
313       description: IP address of management default gateway
314     untrusted_a_ips:
315       hidden: false
316       immutable: false
317       type: list
318       description: List of fixed IP addresses to use as untrusted fixed IPs of A instances.
319       entry_schema:
320         type: string
321     untrusted_sec_groups:
322       hidden: false
323       immutable: false
324       type: list
325       description: List of security groups to add on untrusted interfaces.
326       entry_schema:
327         type: string
328     mgmt_net_id:
329       hidden: false
330       immutable: false
331       type: string
332       description: Management network id
333       constraints: [
334         ]
335     perimeta_flavor_name:
336       hidden: false
337       immutable: false
338       type: string
339       description: Flavor to use for creating VM instances
340       constraints: [
341         ]
342     ha_network_plen:
343       hidden: false
344       immutable: false
345       type: float
346       constraints:
347       - in_range:
348         - 0
349         - 32
350     mgmt_b_ips:
351       hidden: false
352       immutable: false
353       type: list
354       description: List of fixed IP addresses to use as management IPs of B instances.
355       entry_schema:
356         type: string
357   node_templates:
358     perimeta_a_unused_0_port:
359       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
360       properties:
361         name:
362           str_replace:
363             template: $VM_unused_port
364             params:
365               $VM:
366                 get_input:
367                 - vm_a_names
368                 - get_input: perimeta_instance_index
369         network:
370           get_input: unused_net_id
371       requirements:
372       - binding:
373           capability: tosca.capabilities.network.Bindable
374           node: perimeta_a_server_0
375           relationship: tosca.relationships.network.BindsTo
376     perimeta_a_untrusted_0_vlan_ports:
377       type: org.openecomp.resource.abstract.nodes.heat.vlan_subinterface_dual
378       directives:
379       - substitutable
380       properties:
381         vlan_ids:
382           get_input: untrusted_vlan_ids
383         service_template_filter:
384           substitute_service_template: vlan_subinterface_dualServiceTemplate.yaml
385           count:
386             get_input: untrusted_num_vlans
387           mandatory: false
388         parent_interface: perimeta_a_untrusted_0_port
389         virtual_ipv6_address:
390           get_input:
391           - untrusted_v6_vips
392           - get_input: perimeta_instance_index
393         virtual_ip_address:
394           get_input:
395           - untrusted_vips
396           - get_input: perimeta_instance_index
397         mac_address:
398           get_attribute:
399           - perimeta_a_untrusted_0_port
400           - mac_address
401         ipv6_address:
402           get_input:
403           - untrusted_a_v6_ips
404           - get_input: perimeta_instance_index
405         subinterface_name_prefix:
406           str_replace:
407             template: $VM_untrusted_port_vlan_
408             params:
409               $VM:
410                 get_input:
411                 - vm_a_names
412                 - get_input: perimeta_instance_index
413         subinterface_instance_index:
414           get_property:
415           - SELF
416           - service_template_filter
417           - index_value
418         ip_address:
419           get_input:
420           - untrusted_a_ips
421           - get_input: perimeta_instance_index
422         vlan_networks:
423           get_input: untrusted_vlan_networks
424       requirements:
425       - binding_contrail_vmi_subinterface:
426           capability: tosca.capabilities.network.Bindable
427           node: perimeta_a_untrusted_0_port
428           relationship: tosca.relationships.network.BindsTo
429     perimeta_a_mgmt_0_port:
430       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
431       properties:
432         security_groups:
433           get_input: mgmt_sec_groups
434         fixed_ips:
435         - ip_address:
436             get_input:
437             - mgmt_a_ips
438             - get_input: perimeta_instance_index
439         allowed_address_pairs:
440         - ip_address:
441             get_input:
442             - mgmt_vips
443             - get_input: perimeta_instance_index
444         name:
445           str_replace:
446             template: $VM_mgmt_port
447             params:
448               $VM:
449                 get_input:
450                 - vm_a_names
451                 - get_input: perimeta_instance_index
452         network:
453           get_input: mgmt_net_id
454       requirements:
455       - binding:
456           capability: tosca.capabilities.network.Bindable
457           node: perimeta_a_server_0
458           relationship: tosca.relationships.network.BindsTo
459     perimeta_b_untrusted_0_port:
460       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
461       properties:
462         security_groups:
463           get_input: untrusted_sec_groups
464         fixed_ips:
465         - ip_address:
466             get_input:
467             - untrusted_b_ips
468             - get_input: perimeta_instance_index
469         - ip_address:
470             get_input:
471             - untrusted_b_v6_ips
472             - get_input: perimeta_instance_index
473         allowed_address_pairs:
474         - ip_address:
475             get_input:
476             - untrusted_vips
477             - get_input: perimeta_instance_index
478         - ip_address:
479             get_input:
480             - untrusted_v6_vips
481             - get_input: perimeta_instance_index
482         name:
483           str_replace:
484             template: $VM_untrusted_port
485             params:
486               $VM:
487                 get_input:
488                 - vm_b_names
489                 - get_input: perimeta_instance_index
490         network:
491           get_input: untrusted_net_id
492       requirements:
493       - binding:
494           capability: tosca.capabilities.network.Bindable
495           node: perimeta_b_server_0
496           relationship: tosca.relationships.network.BindsTo
497     perimeta_b_untrusted_0_vlan_ports:
498       type: org.openecomp.resource.abstract.nodes.heat.vlan_subinterface_dual
499       directives:
500       - substitutable
501       properties:
502         vlan_ids:
503           get_input: untrusted_vlan_ids
504         service_template_filter:
505           substitute_service_template: vlan_subinterface_dualServiceTemplate.yaml
506           count:
507             get_input: untrusted_num_vlans
508           mandatory: false
509         parent_interface: perimeta_b_untrusted_0_port
510         virtual_ipv6_address:
511           get_input:
512           - untrusted_v6_vips
513           - get_input: perimeta_instance_index
514         virtual_ip_address:
515           get_input:
516           - untrusted_vips
517           - get_input: perimeta_instance_index
518         mac_address:
519           get_attribute:
520           - perimeta_b_untrusted_0_port
521           - mac_address
522         ipv6_address:
523           get_input:
524           - untrusted_b_v6_ips
525           - get_input: perimeta_instance_index
526         subinterface_name_prefix:
527           str_replace:
528             template: $VM_untrusted_port_vlan_
529             params:
530               $VM:
531                 get_input:
532                 - vm_b_names
533                 - get_input: perimeta_instance_index
534         subinterface_instance_index:
535           get_property:
536           - SELF
537           - service_template_filter
538           - index_value
539         ip_address:
540           get_input:
541           - untrusted_b_ips
542           - get_input: perimeta_instance_index
543         vlan_networks:
544           get_input: untrusted_vlan_networks
545       requirements:
546       - binding_contrail_vmi_subinterface:
547           capability: tosca.capabilities.network.Bindable
548           node: perimeta_b_untrusted_0_port
549           relationship: tosca.relationships.network.BindsTo
550     perimeta_b_unused_0_port:
551       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
552       properties:
553         name:
554           str_replace:
555             template: $VM_unused_port
556             params:
557               $VM:
558                 get_input:
559                 - vm_b_names
560                 - get_input: perimeta_instance_index
561         network:
562           get_input: unused_net_id
563       requirements:
564       - binding:
565           capability: tosca.capabilities.network.Bindable
566           node: perimeta_b_server_0
567           relationship: tosca.relationships.network.BindsTo
568     perimeta_a_trusted_0_port:
569       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
570       properties:
571         security_groups:
572           get_input: trusted_sec_groups
573         fixed_ips:
574         - ip_address:
575             get_input:
576             - trusted_a_ips
577             - get_input: perimeta_instance_index
578         allowed_address_pairs:
579         - ip_address:
580             get_input:
581             - trusted_vips
582             - get_input: perimeta_instance_index
583         name:
584           str_replace:
585             template: $VM_trusted_port
586             params:
587               $VM:
588                 get_input:
589                 - vm_a_names
590                 - get_input: perimeta_instance_index
591         network:
592           get_input: trusted_net_id
593       requirements:
594       - binding:
595           capability: tosca.capabilities.network.Bindable
596           node: perimeta_a_server_0
597           relationship: tosca.relationships.network.BindsTo
598     perimeta_b_mgmt_0_port:
599       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
600       properties:
601         security_groups:
602           get_input: mgmt_sec_groups
603         fixed_ips:
604         - ip_address:
605             get_input:
606             - mgmt_b_ips
607             - get_input: perimeta_instance_index
608         allowed_address_pairs:
609         - ip_address:
610             get_input:
611             - mgmt_vips
612             - get_input: perimeta_instance_index
613         name:
614           str_replace:
615             template: $VM_mgmt_port
616             params:
617               $VM:
618                 get_input:
619                 - vm_b_names
620                 - get_input: perimeta_instance_index
621         network:
622           get_input: mgmt_net_id
623       requirements:
624       - binding:
625           capability: tosca.capabilities.network.Bindable
626           node: perimeta_b_server_0
627           relationship: tosca.relationships.network.BindsTo
628     perimeta_b_ha_0_port:
629       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
630       properties:
631         security_groups:
632           get_input: ha_sec_groups
633         fixed_ips:
634         - ip_address:
635             get_input:
636             - ha_b_ips
637             - get_input: perimeta_instance_index
638         name:
639           str_replace:
640             template: $VM_ha_port
641             params:
642               $VM:
643                 get_input:
644                 - vm_b_names
645                 - get_input: perimeta_instance_index
646         network:
647           get_input: ha_net_id
648       requirements:
649       - binding:
650           capability: tosca.capabilities.network.Bindable
651           node: perimeta_b_server_0
652           relationship: tosca.relationships.network.BindsTo
653     perimeta_b_serv3_0_port:
654       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
655       properties:
656         security_groups:
657           get_input: serv3_sec_groups
658         fixed_ips:
659         - ip_address:
660             get_input:
661             - serv3_b_ips
662             - get_input: perimeta_instance_index
663         allowed_address_pairs:
664         - ip_address:
665             get_input:
666             - serv3_vips
667             - get_input: perimeta_instance_index
668         name:
669           str_replace:
670             template: $VM_serv3_port
671             params:
672               $VM:
673                 get_input:
674                 - vm_b_names
675                 - get_input: perimeta_instance_index
676         network:
677           get_input: serv3_net_id
678       requirements:
679       - binding:
680           capability: tosca.capabilities.network.Bindable
681           node: perimeta_b_server_0
682           relationship: tosca.relationships.network.BindsTo
683     perimeta_a_serv3_0_port:
684       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
685       properties:
686         security_groups:
687           get_input: serv3_sec_groups
688         fixed_ips:
689         - ip_address:
690             get_input:
691             - serv3_a_ips
692             - get_input: perimeta_instance_index
693         allowed_address_pairs:
694         - ip_address:
695             get_input:
696             - serv3_vips
697             - get_input: perimeta_instance_index
698         name:
699           str_replace:
700             template: $VM_serv3_port
701             params:
702               $VM:
703                 get_input:
704                 - vm_a_names
705                 - get_input: perimeta_instance_index
706         network:
707           get_input: serv3_net_id
708       requirements:
709       - binding:
710           capability: tosca.capabilities.network.Bindable
711           node: perimeta_a_server_0
712           relationship: tosca.relationships.network.BindsTo
713     perimeta_a_server_0:
714       type: org.openecomp.resource.vfc.nodes.heat.vm_a
715       properties:
716         flavor:
717           get_input: perimeta_flavor_name
718         key_name:
719           get_input: perimeta_keypair
720         availability_zone:
721           get_input: availability_zone_0
722         image:
723           get_input: perimeta_image_name
724         metadata:
725           vf_module_id:
726             get_input: vf_module_id
727           vm_role:
728             str_replace:
729               template: $ROLE_a
730               params:
731                 $ROLE:
732                   get_input: vm_role
733           vnf_id:
734             get_input: vnf_id
735         config_drive: true
736         personality:
737           /opt/MetaSwitch/init/custom.ini:
738             get_artifact:
739             - SELF
740             - custom
741         user_data_format: RAW
742         name:
743           get_input:
744           - vm_a_names
745           - get_input: perimeta_instance_index
746         scheduler_hints:
747           group: perimeta_server_group_group
748       artifacts:
749         custom:
750           type: tosca.artifacts.Deployment
751           file: ../Artifacts/custom.ini
752     perimeta_b_trusted_0_port:
753       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
754       properties:
755         security_groups:
756           get_input: trusted_sec_groups
757         fixed_ips:
758         - ip_address:
759             get_input:
760             - trusted_b_ips
761             - get_input: perimeta_instance_index
762         allowed_address_pairs:
763         - ip_address:
764             get_input:
765             - trusted_vips
766             - get_input: perimeta_instance_index
767         name:
768           str_replace:
769             template: $VM_trusted_port
770             params:
771               $VM:
772                 get_input:
773                 - vm_b_names
774                 - get_input: perimeta_instance_index
775         network:
776           get_input: trusted_net_id
777       requirements:
778       - binding:
779           capability: tosca.capabilities.network.Bindable
780           node: perimeta_b_server_0
781           relationship: tosca.relationships.network.BindsTo
782     perimeta_a_ha_0_port:
783       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
784       properties:
785         security_groups:
786           get_input: ha_sec_groups
787         fixed_ips:
788         - ip_address:
789             get_input:
790             - ha_a_ips
791             - get_input: perimeta_instance_index
792         name:
793           str_replace:
794             template: $VM_ha_port
795             params:
796               $VM:
797                 get_input:
798                 - vm_a_names
799                 - get_input: perimeta_instance_index
800         network:
801           get_input: ha_net_id
802       requirements:
803       - binding:
804           capability: tosca.capabilities.network.Bindable
805           node: perimeta_a_server_0
806           relationship: tosca.relationships.network.BindsTo
807     perimeta_a_untrusted_0_port:
808       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
809       properties:
810         security_groups:
811           get_input: untrusted_sec_groups
812         fixed_ips:
813         - ip_address:
814             get_input:
815             - untrusted_a_ips
816             - get_input: perimeta_instance_index
817         - ip_address:
818             get_input:
819             - untrusted_a_v6_ips
820             - get_input: perimeta_instance_index
821         allowed_address_pairs:
822         - ip_address:
823             get_input:
824             - untrusted_vips
825             - get_input: perimeta_instance_index
826         - ip_address:
827             get_input:
828             - untrusted_v6_vips
829             - get_input: perimeta_instance_index
830         name:
831           str_replace:
832             template: $VM_untrusted_port
833             params:
834               $VM:
835                 get_input:
836                 - vm_a_names
837                 - get_input: perimeta_instance_index
838         network:
839           get_input: untrusted_net_id
840       requirements:
841       - binding:
842           capability: tosca.capabilities.network.Bindable
843           node: perimeta_a_server_0
844           relationship: tosca.relationships.network.BindsTo
845     perimeta_b_server_0:
846       type: org.openecomp.resource.vfc.nodes.heat.vm_b
847       properties:
848         flavor:
849           get_input: perimeta_flavor_name
850         key_name:
851           get_input: perimeta_keypair
852         availability_zone:
853           get_input: availability_zone_1
854         image:
855           get_input: perimeta_image_name
856         metadata:
857           vf_module_id:
858             get_input: vf_module_id
859           vm_role:
860             str_replace:
861               template: $ROLE_b
862               params:
863                 $ROLE:
864                   get_input: vm_role
865           vnf_id:
866             get_input: vnf_id
867         config_drive: true
868         user_data_format: RAW
869         name:
870           get_input:
871           - vm_b_names
872           - get_input: perimeta_instance_index
873         scheduler_hints:
874           group: perimeta_server_group_group
875   groups:
876     perimeta_ha_swmu_group:
877       type: org.openecomp.groups.heat.HeatStack
878       properties:
879         heat_file: ../Artifacts/perimeta_ha_swmu.yaml
880         description: |
881           HOT template to instantiate a Perimeta 1+1 HA instance with 4vNICs as part of a nested template
882       members:
883       - perimeta_a_unused_0_port
884       - perimeta_a_untrusted_0_vlan_ports
885       - perimeta_a_mgmt_0_port
886       - perimeta_b_untrusted_0_port
887       - perimeta_b_untrusted_0_vlan_ports
888       - perimeta_b_unused_0_port
889       - perimeta_a_trusted_0_port
890       - perimeta_b_mgmt_0_port
891       - perimeta_b_ha_0_port
892       - perimeta_b_serv3_0_port
893       - perimeta_a_serv3_0_port
894       - perimeta_a_server_0
895       - perimeta_b_trusted_0_port
896       - perimeta_a_ha_0_port
897       - perimeta_a_untrusted_0_port
898       - perimeta_b_server_0
899     perimeta_server_group_group:
900       type: tosca.groups.Root
901       members:
902       - perimeta_a_server_0
903       - perimeta_b_server_0
904   outputs:
905     server_group_used:
906       description: Server group used for these VMs
907       value: perimeta_server_group_group
908   substitution_mappings:
909     node_type: org.openecomp.resource.abstract.nodes.heat.perimeta_ha_swmu
910     capabilities:
911       attachment_perimeta_a_mgmt_0_port:
912       - perimeta_a_mgmt_0_port
913       - attachment
914       binding_perimeta_a_server_0:
915       - perimeta_a_server_0
916       - binding
917       host_perimeta_a_server_0:
918       - perimeta_a_server_0
919       - host
920       binding_perimeta_b_untrusted_0_port:
921       - perimeta_b_untrusted_0_port
922       - binding
923       binding_perimeta_b_unused_0_port:
924       - perimeta_b_unused_0_port
925       - binding
926       binding_perimeta_b_mgmt_0_port:
927       - perimeta_b_mgmt_0_port
928       - binding
929       binding_perimeta_a_mgmt_0_port:
930       - perimeta_a_mgmt_0_port
931       - binding
932       binding_perimeta_a_untrusted_0_port:
933       - perimeta_a_untrusted_0_port
934       - binding
935       endpoint_perimeta_a_server_0:
936       - perimeta_a_server_0
937       - endpoint
938       attachment_perimeta_b_unused_0_port:
939       - perimeta_b_unused_0_port
940       - attachment
941       attachment_perimeta_a_serv3_0_port:
942       - perimeta_a_serv3_0_port
943       - attachment
944       attachment_perimeta_b_serv3_0_port:
945       - perimeta_b_serv3_0_port
946       - attachment
947       attachment_perimeta_b_ha_0_port:
948       - perimeta_b_ha_0_port
949       - attachment
950       attachment_perimeta_b_trusted_0_port:
951       - perimeta_b_trusted_0_port
952       - attachment
953       attachment_perimeta_b_untrusted_0_port:
954       - perimeta_b_untrusted_0_port
955       - attachment
956       binding_perimeta_b_serv3_0_port:
957       - perimeta_b_serv3_0_port
958       - binding
959       binding_perimeta_a_serv3_0_port:
960       - perimeta_a_serv3_0_port
961       - binding
962       scalable_perimeta_a_server_0:
963       - perimeta_a_server_0
964       - scalable
965       binding_perimeta_b_ha_0_port:
966       - perimeta_b_ha_0_port
967       - binding
968       binding_perimeta_b_trusted_0_port:
969       - perimeta_b_trusted_0_port
970       - binding
971       attachment_perimeta_a_trusted_0_port:
972       - perimeta_a_trusted_0_port
973       - attachment
974       os_perimeta_b_server_0:
975       - perimeta_b_server_0
976       - os
977       attachment_perimeta_a_untrusted_0_port:
978       - perimeta_a_untrusted_0_port
979       - attachment
980       attachment_perimeta_a_ha_0_port:
981       - perimeta_a_ha_0_port
982       - attachment
983       binding_perimeta_a_trusted_0_port:
984       - perimeta_a_trusted_0_port
985       - binding
986       binding_perimeta_a_unused_0_port:
987       - perimeta_a_unused_0_port
988       - binding
989       binding_perimeta_b_server_0:
990       - perimeta_b_server_0
991       - binding
992       scalable_perimeta_b_server_0:
993       - perimeta_b_server_0
994       - scalable
995       attachment_perimeta_a_unused_0_port:
996       - perimeta_a_unused_0_port
997       - attachment
998       endpoint_perimeta_b_server_0:
999       - perimeta_b_server_0
1000       - endpoint
1001       binding_perimeta_a_ha_0_port:
1002       - perimeta_a_ha_0_port
1003       - binding
1004       os_perimeta_a_server_0:
1005       - perimeta_a_server_0
1006       - os
1007       host_perimeta_b_server_0:
1008       - perimeta_b_server_0
1009       - host
1010       attachment_perimeta_b_mgmt_0_port:
1011       - perimeta_b_mgmt_0_port
1012       - attachment
1013     requirements:
1014       link_perimeta_a_trusted_0_port:
1015       - perimeta_a_trusted_0_port
1016       - link
1017       link_perimeta_b_untrusted_0_port:
1018       - perimeta_b_untrusted_0_port
1019       - link
1020       link_perimeta_a_unused_0_port:
1021       - perimeta_a_unused_0_port
1022       - link
1023       link_perimeta_b_serv3_0_port:
1024       - perimeta_b_serv3_0_port
1025       - link
1026       link_perimeta_b_ha_0_port:
1027       - perimeta_b_ha_0_port
1028       - link
1029       link_perimeta_b_trusted_0_port:
1030       - perimeta_b_trusted_0_port
1031       - link
1032       local_storage_perimeta_a_server_0:
1033       - perimeta_a_server_0
1034       - local_storage
1035       link_perimeta_a_mgmt_0_port:
1036       - perimeta_a_mgmt_0_port
1037       - link
1038       link_contrail_vmi_subinterface_perimeta_b_untrusted_0_vlan_ports:
1039       - perimeta_b_untrusted_0_vlan_ports
1040       - link_contrail_vmi_subinterface
1041       local_storage_perimeta_b_server_0:
1042       - perimeta_b_server_0
1043       - local_storage
1044       link_contrail_vmi_subinterface_perimeta_a_untrusted_0_vlan_ports:
1045       - perimeta_a_untrusted_0_vlan_ports
1046       - link_contrail_vmi_subinterface
1047       link_perimeta_a_untrusted_0_port:
1048       - perimeta_a_untrusted_0_port
1049       - link
1050       link_perimeta_a_serv3_0_port:
1051       - perimeta_a_serv3_0_port
1052       - link
1053       link_perimeta_b_unused_0_port:
1054       - perimeta_b_unused_0_port
1055       - link
1056       link_perimeta_b_mgmt_0_port:
1057       - perimeta_b_mgmt_0_port
1058       - link
1059       link_perimeta_a_ha_0_port:
1060       - perimeta_a_ha_0_port
1061       - link
1062   policies:
1063     perimeta_server_group_policy:
1064       type: org.openecomp.policies.placement.Antilocate
1065       properties:
1066         name:
1067           str_replace:
1068             template: $SYSTEM_server_group
1069             params:
1070               $SYSTEM:
1071                 get_input:
1072                 - system_names
1073                 - get_input: perimeta_instance_index
1074         container_type: host
1075       targets:
1076       - perimeta_server_group_group