[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_swServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: perimeta_ha_sw
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     untrusted_b_ips:
76       hidden: false
77       immutable: false
78       type: list
79       description: List of fixed IP addresses to use as untrusted fixed IPs of B instances.
80       entry_schema:
81         type: string
82     ha_net_id:
83       hidden: false
84       immutable: false
85       type: string
86       description: HA network id
87       constraints: [
88         ]
89     perimeta_param_server_group:
90       hidden: false
91       immutable: false
92       type: string
93       description: Server group to use for these VMs - ignored
94     untrusted_vlan_networks:
95       hidden: false
96       immutable: false
97       type: list
98       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.
99       entry_schema:
100         type: string
101     mgmt_sec_groups:
102       hidden: false
103       immutable: false
104       type: list
105       description: List of security groups to add on management interfaces.
106       entry_schema:
107         type: string
108     perimeta_instance_index:
109       hidden: false
110       immutable: false
111       type: float
112       description: Index of instance among multiple instances.  Use to retrieve correct parameter for this instance when passed all parameters for all instances.
113     untrusted_vlan_ids:
114       hidden: false
115       immutable: false
116       type: list
117       description: List of VLAN IDs to use on the untrusted/access network
118       entry_schema:
119         type: string
120     perimeta_keypair:
121       hidden: false
122       immutable: false
123       type: string
124       description: Keypair to use for accessing this Perimeta instance
125       constraints: [
126         ]
127     mgmt_vips:
128       hidden: false
129       immutable: false
130       type: list
131       description: List of management virtual IP addresses for all instances.
132       entry_schema:
133         type: string
134     untrusted_vips:
135       hidden: false
136       immutable: false
137       type: list
138       description: List of service network 2 virtual IP addresses for all instances.
139       entry_schema:
140         type: string
141     vnf_id:
142       hidden: false
143       immutable: false
144       type: string
145       description: VNF ID of this deployment
146     availability_zone_0:
147       hidden: false
148       immutable: false
149       type: string
150       description: Availability zone for A instances.
151     availability_zone_1:
152       hidden: false
153       immutable: false
154       type: string
155       description: Availability zone for B instances.  May be the same as A instance.
156     ha_a_ips:
157       hidden: false
158       immutable: false
159       type: list
160       description: List of fixed IP addresses to use as HA IPs of A instances.
161       entry_schema:
162         type: string
163     untrusted_v6_vips:
164       hidden: false
165       immutable: false
166       type: list
167       description: List of service network 2 alternate virtual IP addresses for all instances.
168       entry_schema:
169         type: string
170     ha_sec_groups:
171       hidden: false
172       immutable: false
173       type: list
174       description: List of security groups to add on HA interfaces.
175       entry_schema:
176         type: string
177     trusted_a_ips:
178       hidden: false
179       immutable: false
180       type: list
181       description: List of fixed IP addresses to use as trusted fixed IPs of A instances.
182       entry_schema:
183         type: string
184     untrusted_num_vlans:
185       hidden: false
186       immutable: false
187       type: float
188       description: Number of VLANs to connect to on the untrusted/access network
189     system_names:
190       hidden: false
191       immutable: false
192       type: list
193       description: List of system names of Perimeta instances.  Name of a specific instance is indexed by perimeta_instance_index
194       entry_schema:
195         type: string
196     vm_b_names:
197       hidden: false
198       immutable: false
199       type: list
200       description: List of names of Perimeta VM A instances, indexed by perimeta_instance_index
201       entry_schema:
202         type: string
203     trusted_sec_groups:
204       hidden: false
205       immutable: false
206       type: list
207       description: List of security groups to add on trusted interfaces.
208       entry_schema:
209         type: string
210     trusted_vips:
211       hidden: false
212       immutable: false
213       type: list
214       description: List of service network 1 virtual IP addresses for all instances.
215       entry_schema:
216         type: string
217     trusted_net_id:
218       hidden: false
219       immutable: false
220       type: string
221       description: Service network 1 network UUID
222       constraints: [
223         ]
224     ha_b_ips:
225       hidden: false
226       immutable: false
227       type: list
228       description: List of fixed IP addresses to use as HA IPs of B instances.
229       entry_schema:
230         type: string
231     untrusted_a_v6_ips:
232       hidden: false
233       immutable: false
234       type: list
235       description: List of fixed IP addresses to use as untrusted alternate fixed IPs of A instances.
236       entry_schema:
237         type: string
238     untrusted_b_v6_ips:
239       hidden: false
240       immutable: false
241       type: list
242       description: List of fixed IP addresses to use as untrusted alternate fixed IPs of B instances.
243       entry_schema:
244         type: string
245     mgmt_a_ips:
246       hidden: false
247       immutable: false
248       type: list
249       description: List of fixed IP addresses to use as management IPs of A instances.
250       entry_schema:
251         type: string
252     vm_role:
253       hidden: false
254       immutable: false
255       type: string
256       description: Role of these VMs
257     trusted_b_ips:
258       hidden: false
259       immutable: false
260       type: list
261       description: List of fixed IP addresses to use as trusted fixed IPs of B instances.
262       entry_schema:
263         type: string
264     perimeta_image_name:
265       hidden: false
266       immutable: false
267       type: string
268       description: Glance image for Perimeta instance
269       constraints: [
270         ]
271     mgmt_net_default_gateway:
272       hidden: false
273       immutable: false
274       type: string
275       description: IP address of management default gateway
276     untrusted_a_ips:
277       hidden: false
278       immutable: false
279       type: list
280       description: List of fixed IP addresses to use as untrusted fixed IPs of A instances.
281       entry_schema:
282         type: string
283     untrusted_sec_groups:
284       hidden: false
285       immutable: false
286       type: list
287       description: List of security groups to add on untrusted interfaces.
288       entry_schema:
289         type: string
290     mgmt_net_id:
291       hidden: false
292       immutable: false
293       type: string
294       description: Management network id
295       constraints: [
296         ]
297     perimeta_flavor_name:
298       hidden: false
299       immutable: false
300       type: string
301       description: Flavor to use for creating VM instances
302       constraints: [
303         ]
304     ha_network_plen:
305       hidden: false
306       immutable: false
307       type: float
308       constraints:
309       - in_range:
310         - 0
311         - 32
312     mgmt_b_ips:
313       hidden: false
314       immutable: false
315       type: list
316       description: List of fixed IP addresses to use as management IPs of B instances.
317       entry_schema:
318         type: string
319   node_templates:
320     perimeta_b_ha_0_port:
321       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
322       properties:
323         security_groups:
324           get_input: ha_sec_groups
325         fixed_ips:
326         - ip_address:
327             get_input:
328             - ha_b_ips
329             - get_input: perimeta_instance_index
330         name:
331           str_replace:
332             template: $VM_ha_port
333             params:
334               $VM:
335                 get_input:
336                 - vm_b_names
337                 - get_input: perimeta_instance_index
338         network:
339           get_input: ha_net_id
340       requirements:
341       - binding:
342           capability: tosca.capabilities.network.Bindable
343           node: perimeta_b_server_0
344           relationship: tosca.relationships.network.BindsTo
345     perimeta_a_untrusted_0_vlan_ports:
346       type: org.openecomp.resource.abstract.nodes.heat.vlan_subinterface_dual
347       directives:
348       - substitutable
349       properties:
350         vlan_ids:
351           get_input: untrusted_vlan_ids
352         service_template_filter:
353           substitute_service_template: vlan_subinterface_dualServiceTemplate.yaml
354           count:
355             get_input: untrusted_num_vlans
356           mandatory: false
357         parent_interface: perimeta_a_untrusted_0_port
358         virtual_ipv6_address:
359           get_input:
360           - untrusted_v6_vips
361           - get_input: perimeta_instance_index
362         virtual_ip_address:
363           get_input:
364           - untrusted_vips
365           - get_input: perimeta_instance_index
366         mac_address:
367           get_attribute:
368           - perimeta_a_untrusted_0_port
369           - mac_address
370         ipv6_address:
371           get_input:
372           - untrusted_a_v6_ips
373           - get_input: perimeta_instance_index
374         subinterface_name_prefix:
375           str_replace:
376             template: $VM_untrusted_port_vlan_
377             params:
378               $VM:
379                 get_input:
380                 - vm_a_names
381                 - get_input: perimeta_instance_index
382         subinterface_instance_index:
383           get_property:
384           - SELF
385           - service_template_filter
386           - index_value
387         ip_address:
388           get_input:
389           - untrusted_a_ips
390           - get_input: perimeta_instance_index
391         vlan_networks:
392           get_input: untrusted_vlan_networks
393       requirements:
394       - binding_contrail_vmi_subinterface:
395           capability: tosca.capabilities.network.Bindable
396           node: perimeta_a_untrusted_0_port
397           relationship: tosca.relationships.network.BindsTo
398     perimeta_a_server_0:
399       type: org.openecomp.resource.vfc.nodes.heat.vm_a
400       properties:
401         flavor:
402           get_input: perimeta_flavor_name
403         key_name:
404           get_input: perimeta_keypair
405         availability_zone:
406           get_input: availability_zone_0
407         image:
408           get_input: perimeta_image_name
409         metadata:
410           vf_module_id:
411             get_input: vf_module_id
412           vm_role:
413             str_replace:
414               template: $ROLE_a
415               params:
416                 $ROLE:
417                   get_input: vm_role
418           vnf_id:
419             get_input: vnf_id
420         config_drive: true
421         personality:
422           /opt/MetaSwitch/init/custom.ini:
423             get_artifact:
424             - SELF
425             - custom
426         user_data_format: RAW
427         name:
428           get_input:
429           - vm_a_names
430           - get_input: perimeta_instance_index
431         scheduler_hints:
432           group: perimeta_server_group_group
433       artifacts:
434         custom:
435           type: tosca.artifacts.Deployment
436           file: ../Artifacts/custom.ini
437     perimeta_a_mgmt_0_port:
438       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
439       properties:
440         security_groups:
441           get_input: mgmt_sec_groups
442         fixed_ips:
443         - ip_address:
444             get_input:
445             - mgmt_a_ips
446             - get_input: perimeta_instance_index
447         allowed_address_pairs:
448         - ip_address:
449             get_input:
450             - mgmt_vips
451             - get_input: perimeta_instance_index
452         name:
453           str_replace:
454             template: $VM_mgmt_port
455             params:
456               $VM:
457                 get_input:
458                 - vm_a_names
459                 - get_input: perimeta_instance_index
460         network:
461           get_input: mgmt_net_id
462       requirements:
463       - binding:
464           capability: tosca.capabilities.network.Bindable
465           node: perimeta_a_server_0
466           relationship: tosca.relationships.network.BindsTo
467     perimeta_b_trusted_0_port:
468       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
469       properties:
470         security_groups:
471           get_input: trusted_sec_groups
472         fixed_ips:
473         - ip_address:
474             get_input:
475             - trusted_b_ips
476             - get_input: perimeta_instance_index
477         allowed_address_pairs:
478         - ip_address:
479             get_input:
480             - trusted_vips
481             - get_input: perimeta_instance_index
482         name:
483           str_replace:
484             template: $VM_trusted_port
485             params:
486               $VM:
487                 get_input:
488                 - vm_b_names
489                 - get_input: perimeta_instance_index
490         network:
491           get_input: trusted_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_port:
498       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
499       properties:
500         security_groups:
501           get_input: untrusted_sec_groups
502         fixed_ips:
503         - ip_address:
504             get_input:
505             - untrusted_b_ips
506             - get_input: perimeta_instance_index
507         - ip_address:
508             get_input:
509             - untrusted_b_v6_ips
510             - get_input: perimeta_instance_index
511         allowed_address_pairs:
512         - ip_address:
513             get_input:
514             - untrusted_vips
515             - get_input: perimeta_instance_index
516         - ip_address:
517             get_input:
518             - untrusted_v6_vips
519             - get_input: perimeta_instance_index
520         name:
521           str_replace:
522             template: $VM_untrusted_port
523             params:
524               $VM:
525                 get_input:
526                 - vm_b_names
527                 - get_input: perimeta_instance_index
528         network:
529           get_input: untrusted_net_id
530       requirements:
531       - binding:
532           capability: tosca.capabilities.network.Bindable
533           node: perimeta_b_server_0
534           relationship: tosca.relationships.network.BindsTo
535     perimeta_b_untrusted_0_vlan_ports:
536       type: org.openecomp.resource.abstract.nodes.heat.vlan_subinterface_dual
537       directives:
538       - substitutable
539       properties:
540         vlan_ids:
541           get_input: untrusted_vlan_ids
542         service_template_filter:
543           substitute_service_template: vlan_subinterface_dualServiceTemplate.yaml
544           count:
545             get_input: untrusted_num_vlans
546           mandatory: false
547         parent_interface: perimeta_b_untrusted_0_port
548         virtual_ipv6_address:
549           get_input:
550           - untrusted_v6_vips
551           - get_input: perimeta_instance_index
552         virtual_ip_address:
553           get_input:
554           - untrusted_vips
555           - get_input: perimeta_instance_index
556         mac_address:
557           get_attribute:
558           - perimeta_b_untrusted_0_port
559           - mac_address
560         ipv6_address:
561           get_input:
562           - untrusted_b_v6_ips
563           - get_input: perimeta_instance_index
564         subinterface_name_prefix:
565           str_replace:
566             template: $VM_untrusted_port_vlan_
567             params:
568               $VM:
569                 get_input:
570                 - vm_b_names
571                 - get_input: perimeta_instance_index
572         subinterface_instance_index:
573           get_property:
574           - SELF
575           - service_template_filter
576           - index_value
577         ip_address:
578           get_input:
579           - untrusted_b_ips
580           - get_input: perimeta_instance_index
581         vlan_networks:
582           get_input: untrusted_vlan_networks
583       requirements:
584       - binding_contrail_vmi_subinterface:
585           capability: tosca.capabilities.network.Bindable
586           node: perimeta_b_untrusted_0_port
587           relationship: tosca.relationships.network.BindsTo
588     perimeta_a_ha_0_port:
589       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
590       properties:
591         security_groups:
592           get_input: ha_sec_groups
593         fixed_ips:
594         - ip_address:
595             get_input:
596             - ha_a_ips
597             - get_input: perimeta_instance_index
598         name:
599           str_replace:
600             template: $VM_ha_port
601             params:
602               $VM:
603                 get_input:
604                 - vm_a_names
605                 - get_input: perimeta_instance_index
606         network:
607           get_input: ha_net_id
608       requirements:
609       - binding:
610           capability: tosca.capabilities.network.Bindable
611           node: perimeta_a_server_0
612           relationship: tosca.relationships.network.BindsTo
613     perimeta_a_trusted_0_port:
614       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
615       properties:
616         security_groups:
617           get_input: trusted_sec_groups
618         fixed_ips:
619         - ip_address:
620             get_input:
621             - trusted_a_ips
622             - get_input: perimeta_instance_index
623         allowed_address_pairs:
624         - ip_address:
625             get_input:
626             - trusted_vips
627             - get_input: perimeta_instance_index
628         name:
629           str_replace:
630             template: $VM_trusted_port
631             params:
632               $VM:
633                 get_input:
634                 - vm_a_names
635                 - get_input: perimeta_instance_index
636         network:
637           get_input: trusted_net_id
638       requirements:
639       - binding:
640           capability: tosca.capabilities.network.Bindable
641           node: perimeta_a_server_0
642           relationship: tosca.relationships.network.BindsTo
643     perimeta_b_mgmt_0_port:
644       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
645       properties:
646         security_groups:
647           get_input: mgmt_sec_groups
648         fixed_ips:
649         - ip_address:
650             get_input:
651             - mgmt_b_ips
652             - get_input: perimeta_instance_index
653         allowed_address_pairs:
654         - ip_address:
655             get_input:
656             - mgmt_vips
657             - get_input: perimeta_instance_index
658         name:
659           str_replace:
660             template: $VM_mgmt_port
661             params:
662               $VM:
663                 get_input:
664                 - vm_b_names
665                 - get_input: perimeta_instance_index
666         network:
667           get_input: mgmt_net_id
668       requirements:
669       - binding:
670           capability: tosca.capabilities.network.Bindable
671           node: perimeta_b_server_0
672           relationship: tosca.relationships.network.BindsTo
673     perimeta_a_untrusted_0_port:
674       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
675       properties:
676         security_groups:
677           get_input: untrusted_sec_groups
678         fixed_ips:
679         - ip_address:
680             get_input:
681             - untrusted_a_ips
682             - get_input: perimeta_instance_index
683         - ip_address:
684             get_input:
685             - untrusted_a_v6_ips
686             - get_input: perimeta_instance_index
687         allowed_address_pairs:
688         - ip_address:
689             get_input:
690             - untrusted_vips
691             - get_input: perimeta_instance_index
692         - ip_address:
693             get_input:
694             - untrusted_v6_vips
695             - get_input: perimeta_instance_index
696         name:
697           str_replace:
698             template: $VM_untrusted_port
699             params:
700               $VM:
701                 get_input:
702                 - vm_a_names
703                 - get_input: perimeta_instance_index
704         network:
705           get_input: untrusted_net_id
706       requirements:
707       - binding:
708           capability: tosca.capabilities.network.Bindable
709           node: perimeta_a_server_0
710           relationship: tosca.relationships.network.BindsTo
711     perimeta_b_server_0:
712       type: org.openecomp.resource.vfc.nodes.heat.vm_b
713       properties:
714         flavor:
715           get_input: perimeta_flavor_name
716         key_name:
717           get_input: perimeta_keypair
718         availability_zone:
719           get_input: availability_zone_1
720         image:
721           get_input: perimeta_image_name
722         metadata:
723           vf_module_id:
724             get_input: vf_module_id
725           vm_role:
726             str_replace:
727               template: $ROLE_b
728               params:
729                 $ROLE:
730                   get_input: vm_role
731           vnf_id:
732             get_input: vnf_id
733         config_drive: true
734         user_data_format: RAW
735         name:
736           get_input:
737           - vm_b_names
738           - get_input: perimeta_instance_index
739         scheduler_hints:
740           group: perimeta_server_group_group
741   groups:
742     perimeta_server_group_group:
743       type: tosca.groups.Root
744       members:
745       - perimeta_a_server_0
746       - perimeta_b_server_0
747     perimeta_ha_sw_group:
748       type: org.openecomp.groups.heat.HeatStack
749       properties:
750         heat_file: ../Artifacts/perimeta_ha_sw.yaml
751         description: |
752           HOT template to instantiate a Perimeta 1+1 HA instance with 4vNICs as part of a nested template
753       members:
754       - perimeta_b_ha_0_port
755       - perimeta_a_untrusted_0_vlan_ports
756       - perimeta_a_server_0
757       - perimeta_a_mgmt_0_port
758       - perimeta_b_trusted_0_port
759       - perimeta_b_untrusted_0_port
760       - perimeta_b_untrusted_0_vlan_ports
761       - perimeta_a_ha_0_port
762       - perimeta_a_trusted_0_port
763       - perimeta_b_mgmt_0_port
764       - perimeta_a_untrusted_0_port
765       - perimeta_b_server_0
766   outputs:
767     server_group_used:
768       description: Server group used for these VMs
769       value: perimeta_server_group_group
770   substitution_mappings:
771     node_type: org.openecomp.resource.abstract.nodes.heat.perimeta_ha_sw
772     capabilities:
773       attachment_perimeta_a_mgmt_0_port:
774       - perimeta_a_mgmt_0_port
775       - attachment
776       binding_perimeta_a_server_0:
777       - perimeta_a_server_0
778       - binding
779       host_perimeta_a_server_0:
780       - perimeta_a_server_0
781       - host
782       binding_perimeta_b_untrusted_0_port:
783       - perimeta_b_untrusted_0_port
784       - binding
785       binding_perimeta_b_mgmt_0_port:
786       - perimeta_b_mgmt_0_port
787       - binding
788       binding_perimeta_a_mgmt_0_port:
789       - perimeta_a_mgmt_0_port
790       - binding
791       binding_perimeta_a_untrusted_0_port:
792       - perimeta_a_untrusted_0_port
793       - binding
794       endpoint_perimeta_a_server_0:
795       - perimeta_a_server_0
796       - endpoint
797       attachment_perimeta_b_ha_0_port:
798       - perimeta_b_ha_0_port
799       - attachment
800       attachment_perimeta_b_trusted_0_port:
801       - perimeta_b_trusted_0_port
802       - attachment
803       attachment_perimeta_b_untrusted_0_port:
804       - perimeta_b_untrusted_0_port
805       - attachment
806       scalable_perimeta_a_server_0:
807       - perimeta_a_server_0
808       - scalable
809       binding_perimeta_b_ha_0_port:
810       - perimeta_b_ha_0_port
811       - binding
812       binding_perimeta_b_trusted_0_port:
813       - perimeta_b_trusted_0_port
814       - binding
815       attachment_perimeta_a_trusted_0_port:
816       - perimeta_a_trusted_0_port
817       - attachment
818       os_perimeta_b_server_0:
819       - perimeta_b_server_0
820       - os
821       attachment_perimeta_a_untrusted_0_port:
822       - perimeta_a_untrusted_0_port
823       - attachment
824       attachment_perimeta_a_ha_0_port:
825       - perimeta_a_ha_0_port
826       - attachment
827       binding_perimeta_a_trusted_0_port:
828       - perimeta_a_trusted_0_port
829       - binding
830       binding_perimeta_b_server_0:
831       - perimeta_b_server_0
832       - binding
833       scalable_perimeta_b_server_0:
834       - perimeta_b_server_0
835       - scalable
836       endpoint_perimeta_b_server_0:
837       - perimeta_b_server_0
838       - endpoint
839       binding_perimeta_a_ha_0_port:
840       - perimeta_a_ha_0_port
841       - binding
842       os_perimeta_a_server_0:
843       - perimeta_a_server_0
844       - os
845       host_perimeta_b_server_0:
846       - perimeta_b_server_0
847       - host
848       attachment_perimeta_b_mgmt_0_port:
849       - perimeta_b_mgmt_0_port
850       - attachment
851     requirements:
852       link_perimeta_a_trusted_0_port:
853       - perimeta_a_trusted_0_port
854       - link
855       link_perimeta_b_untrusted_0_port:
856       - perimeta_b_untrusted_0_port
857       - link
858       link_perimeta_a_mgmt_0_port:
859       - perimeta_a_mgmt_0_port
860       - link
861       link_perimeta_b_ha_0_port:
862       - perimeta_b_ha_0_port
863       - link
864       link_contrail_vmi_subinterface_perimeta_b_untrusted_0_vlan_ports:
865       - perimeta_b_untrusted_0_vlan_ports
866       - link_contrail_vmi_subinterface
867       local_storage_perimeta_b_server_0:
868       - perimeta_b_server_0
869       - local_storage
870       link_contrail_vmi_subinterface_perimeta_a_untrusted_0_vlan_ports:
871       - perimeta_a_untrusted_0_vlan_ports
872       - link_contrail_vmi_subinterface
873       link_perimeta_a_untrusted_0_port:
874       - perimeta_a_untrusted_0_port
875       - link
876       link_perimeta_b_mgmt_0_port:
877       - perimeta_b_mgmt_0_port
878       - link
879       link_perimeta_a_ha_0_port:
880       - perimeta_a_ha_0_port
881       - link
882       link_perimeta_b_trusted_0_port:
883       - perimeta_b_trusted_0_port
884       - link
885       local_storage_perimeta_a_server_0:
886       - perimeta_a_server_0
887       - local_storage
888   policies:
889     perimeta_server_group_policy:
890       type: org.openecomp.policies.placement.Antilocate
891       properties:
892         name:
893           str_replace:
894             template: $SYSTEM_server_group
895             params:
896               $SYSTEM:
897                 get_input:
898                 - system_names
899                 - get_input: perimeta_instance_index
900         container_type: host
901       targets:
902       - perimeta_server_group_group