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