summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichNfcNamingFunction/in/nest_cfed_bServiceTemplate.yaml
blob: 7e2600570ef954be7acdfc5a2e98458246c33e6d (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
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: nest_cfed_b
imports:
- openecomp_heat_index:
    file: openecomp-heat/_index.yml
- GlobalSubstitutionTypes:
    file: GlobalSubstitutionTypesServiceTemplate.yaml
- openecomp_index:
    file: openecomp/_index.yml
node_types:
  org.openecomp.resource.vfc.compute.nodes.heat.cfed:
    derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
topology_template:
  inputs:
    cfed_flavor_name:
      hidden: false
      immutable: false
      type: string
      description: VM flavor name.
    cfed_sigv6_ipmap_sideB_0_fixed_dbaas:
      hidden: false
      immutable: false
      type: list
      description: VM/subnet/usage IP address list. Keyed by group index.
      entry_schema:
        type: string
    port_cfed_1_int_ctrl0_port_0_subnetpoolid:
      type: string
      required: true
    cfed_sig_ipmap_sideB_0_fixed_dbaas:
      hidden: false
      immutable: false
      type: list
      description: VM/subnet/usage IP address list. Keyed by group index.
      entry_schema:
        type: string
    port_cfed_1_sig_port_2_vlan_requirements:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.VlanRequirements
    usage_info:
      hidden: false
      immutable: false
      type: json
      description: |
        Per-VM/vNIC data for members of this elastic group.
    port_cfed_1_sig_port_2_exCP_naming:
      type: org.openecomp.datatypes.Naming
      required: true
    config_info:
      hidden: false
      immutable: false
      type: json
      description: Service configuration and network layout.
    group_index:
      hidden: false
      immutable: false
      type: float
      description: Index of the VM pair within the elastic group.
      constraints:
      - in_range:
        - 0
        - null
    sig_subnet_id:
      hidden: false
      immutable: false
      type: string
      description: UUID of the subnet.
    workload_context:
      label: Workload Context
      hidden: false
      immutable: false
      type: string
      description: Workload context for this VNF.
    port_cfed_1_sig_port_2_mac_requirements:
      type: org.openecomp.datatypes.network.MacRequirements
      required: true
    ssh_private_key:
      hidden: true
      immutable: false
      type: string
      description: Private SSH key for VM to VM communication in this system.
    port_cfed_1_sig_port_2_network_role:
      type: string
      required: true
    port_cfed_1_int_ctrl1_port_1_vlan_requirements:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.VlanRequirements
    port_cfed_1_int_ctrl0_port_0_network_role_tag:
      type: string
      required: true
    int_ctrl1_Sec_Grp:
      hidden: false
      immutable: false
      type: string
      description: Internal network 0 security group UUID.
    port_cfed_1_sig_port_2_network_role_tag:
      type: string
      required: true
    current_group_count:
      hidden: false
      immutable: false
      type: string
      description: |
        Current VM pair count within the elastic group.
    port_cfed_1_int_ctrl0_port_0_exCP_naming:
      type: org.openecomp.datatypes.Naming
      required: true
    total_pair_count:
      hidden: false
      immutable: false
      type: string
      description: |
        This string will evaluate to the number of PairGroups in the VNF.
    int_ctrl1_net_id:
      hidden: false
      immutable: false
      type: string
      description: Internal network 1.
    port_cfed_1_sig_port_2_ip_requirements:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.IpRequirements
    cfed_image_name:
      hidden: false
      immutable: false
      type: string
      description: VM image name.
    port_cfed_1_int_ctrl1_port_1_subnetpoolid:
      type: string
      required: true
    port_cfed_1_int_ctrl1_port_1_related_networks:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.RelatedNetworksAssignments
    ssh_public_key:
      hidden: false
      immutable: false
      type: string
      description: Public SSH key for VM to VM communication in this system.
    port_cfed_1_int_ctrl1_port_1_network_role_tag:
      type: string
      required: true
    port_cfed_1_sig_port_2_related_networks:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.RelatedNetworksAssignments
    port_cfed_1_int_ctrl0_port_0_vlan_requirements:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.VlanRequirements
    port_cfed_1_sig_port_2_subnetpoolid:
      type: string
      required: true
    sig_net_id:
      hidden: false
      immutable: false
      type: string
      description: UUID of the network.
    sigv6_v6_subnet_id:
      hidden: false
      immutable: false
      type: string
      description: UUID of the subnet.
    vf_module_index:
      hidden: false
      immutable: false
      type: float
      description: Unique index for this VNF Module instance.
    backup_file1:
      hidden: false
      immutable: false
      type: string
      description: |
        <cURL path>/<backup file>
        This is only used for restore (aka "disaster recovery") and
        only referenced on OAM-A.
    vf_module_id:
      hidden: false
      immutable: false
      type: string
      description: Unique ID for this VNF module instance.
    backup_file2:
      hidden: false
      immutable: false
      type: string
      description: |
        <cURL path>/<backup file>
        This is only used for restore (aka "disaster recovery") and
        only referenced on OAM-A.
    port_cfed_1_int_ctrl1_port_1_exCP_naming:
      type: org.openecomp.datatypes.Naming
      required: true
    cfed_names:
      hidden: false
      immutable: false
      type: list
      description: VM name list.
      entry_schema:
        type: string
    role:
      hidden: false
      immutable: false
      type: string
      description: VM role during LCM activities.
      constraints:
      - valid_values:
        - oam
        - other
    vnf_name:
      hidden: false
      immutable: false
      type: string
      description: Unique name for this VNF instance.
    vf_module_name:
      hidden: false
      immutable: false
      type: string
      description: Unique name for this VNF module instance.
    port_cfed_1_int_ctrl0_port_0_related_networks:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.RelatedNetworksAssignments
    port_cfed_1_int_ctrl1_port_1_mac_requirements:
      type: org.openecomp.datatypes.network.MacRequirements
      required: true
    vnf_id:
      hidden: false
      immutable: false
      type: string
      description: Unique ID for this VNF instance.
    port_cfed_1_int_ctrl1_port_1_network_role:
      type: string
      required: true
    lcm_keypair:
      hidden: false
      immutable: false
      type: string
      description: Lifecycle management access key pair.
      constraints: [
        ]
    port_cfed_1_int_ctrl1_port_1_order:
      type: integer
      required: true
    availability_zone_1:
      hidden: false
      immutable: false
      type: string
      description: VM availability zone.
    sig_Sec_Grp:
      hidden: false
      immutable: false
      type: string
      description: UUID of the security group.
    int_ctrl0_Sec_Grp:
      hidden: false
      immutable: false
      type: string
      description: Internal network 0 security group UUID.
    net_info_str:
      hidden: false
      immutable: false
      type: string
      description: |
        JSON formatted string with all network info.
        This is redundant with int_net_info and ext_net_info except
        in Kilo there is no way to convert json to string for
        output as a personality file.
    ssh_access_key:
      hidden: false
      immutable: false
      type: string
      description: Public SSH key for external access.
    int_ctrl0_net_id:
      hidden: false
      immutable: false
      type: string
      description: Internal network 0.
    port_cfed_1_sig_port_2_order:
      type: integer
      required: true
    environment_context:
      label: Environment Context
      hidden: false
      immutable: false
      type: string
      description: Environment context for this VNF.
    port_cfed_1_int_ctrl0_port_0_network_role:
      type: string
      required: true
    pair2idx:
      hidden: false
      immutable: false
      type: json
      description: Map group index to VMtype index.
    vm_role:
      hidden: false
      immutable: false
      type: string
      description: Unique role for these VMs.
    port_cfed_1_int_ctrl0_port_0_ip_requirements:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.IpRequirements
    port_cfed_1_int_ctrl0_port_0_order:
      type: integer
      required: true
    port_cfed_1_int_ctrl0_port_0_mac_requirements:
      type: org.openecomp.datatypes.network.MacRequirements
      required: true
    group_id:
      hidden: false
      immutable: false
      type: string
      description: ID number of the elastic group this pair is a member of.
    install_config:
      hidden: false
      immutable: false
      type: string
      description: JSON formatted string of install config values.
    cfed_volume_1:
      hidden: false
      immutable: false
      type: json
      description: CFED Volume.
    group_tag:
      hidden: false
      immutable: false
      type: string
      description: Key into "usage_info" for members of this elastic group.
    port_cfed_1_int_ctrl1_port_1_ip_requirements:
      type: list
      required: true
      entry_schema:
        type: org.openecomp.datatypes.network.IpRequirements
  node_templates:
    cfed_server_1:
      type: org.openecomp.resource.vfc.compute.nodes.heat.cfed
      properties:
        flavor:
          get_input: cfed_flavor_name
        key_name:
          get_input: lcm_keypair
        availability_zone:
          get_input: availability_zone_1
        image:
          get_input: cfed_image_name
        image_update_policy: REBUILD
        metadata:
          backup_file1:
            get_input: backup_file1
          total_pair_count:
            get_input: total_pair_count
          vf_module_id:
            get_input: vf_module_id
          backup_file2:
            get_input: backup_file2
          image:
            get_input: cfed_image_name
          member_index: '1'
          certificate: ''
          vnf_name:
            get_input: vnf_name
          created_at: now
          environment_context:
            get_input: environment_context
          group_type: pair
          group_index:
            get_input: group_index
          workload_context:
            get_input: workload_context
          vf_module_name:
            get_input: vf_module_name
          default_action: install
          flavor:
            get_input: cfed_flavor_name
          vm_role:
            get_input: vm_role
          side_action:
            get_input:
            - usage_info
            - defaults
            - action
            - '1'
          group_id:
            get_input: group_id
          vnf_id:
            get_input: vnf_id
          current_group_count:
            get_input: current_group_count
          action: install
          vf_module_index:
            get_input: vf_module_index
        config_drive: true
        personality:
          /storage/cloud/discover/GlobalConfig.json:
            str_replace:
              template: ' { "v4_dns_server": "$v4dns", "v6_dns_server": "$v6dns",
                "v4_enum_server": "$v4enum", "v6_enum_server": "$v6enum", "v4_ntp_server":
                "$v4ntp", "v6_ntp_server": "$v6ntp", "time_zone": "$time_zone", "system_name":
                "$sysname", "system_prefix": "$sysprefix", "license_reference": "$license_ref",
                "local_dns_domain": "$local_dns", "local_enum_domain": "$local_enum",
                $cfg } '
              params:
                $v4dns:
                  get_input:
                  - usage_info
                  - v4_dns_server
                $v6enum:
                  get_input:
                  - usage_info
                  - v6_enum_serve
                $v6ntp:
                  get_input:
                  - usage_info
                  - v6_ntp_server
                $v6dns:
                  get_input:
                  - usage_info
                  - v6_dns_server
                $v4enum:
                  get_input:
                  - usage_info
                  - v4_enum_server
                $sysname:
                  get_input:
                  - usage_info
                  - system_name
                $local_enum:
                  get_input:
                  - usage_info
                  - local_enum_domain
                $v4ntp:
                  get_input:
                  - usage_info
                  - v4_ntp_server
                $cfg:
                  get_input: install_config
                $local_dns:
                  get_input:
                  - usage_info
                  - local_dns_domain
                $sysprefix:
                  get_input:
                  - usage_info
                  - system_prefix
                $license_ref:
                  get_input:
                  - usage_info
                  - license_reference
                $time_zone:
                  get_input:
                  - usage_info
                  - time_zone
          /storage/cloud/.ssh/SSHpubkey:
            get_input: ssh_public_key
          /storage/cloud/CLDsetup_data.json:
            str_replace:
              template: ' { "drbd_uuid": "", "int_vlan_id": "$int_vlan_id", "random":
                "$random", "SSHpubkeyFile": "/storage/cloud/.ssh/SSHpubkey", "SSHprivkeyFile":
                "/storage/cloud/.ssh/SSHprivkey", "SSHaccessKey": "$acckey", "stk":
                "$stk", "uuid_storage": "$uuid_storage" }'
              params:
                $random: UNSUPPORTED_RESOURCE_cfed_RandomB
                $stk:
                  get_input:
                  - usage_info
                  - stack
                $uuid_storage:
                  get_input:
                  - cfed_volume_1
                  - get_attribute:
                    - cfed_mapidx_1
                    - idx1
                $acckey:
                  get_input: ssh_access_key
                $int_vlan_id:
                  get_input:
                  - usage_info
                  - int_vlan_id
          /storage/cloud/discover/VMinfo.json:
            str_replace:
              template: ' { "vm_suffix": "$vmname", "service_config": $servcfg, "v4_default_gateway":
                "$v4gateway", "v6_default_gateway": "$v6gateway", "v4_static_routes":
                $v4static_routes, "v6_static_routes": $v6static_routes, "IPinfo":
                [$ipinfo], "Netinfo": $netinfo } '
              params:
                $ipinfo:
                  str_replace:
                    template: '{"count": "$ip_count00", "binding_type": "$btype00",
                      "mac_address": "$mac00", "assigned_ips": [$assgip00], "label2info":
                      [$l2info00]} ,{"count": "$ip_count01", "binding_type": "$btype01",
                      "mac_address": "$mac01", "assigned_ips": [$assgip01], "label2info":
                      [$l2info01]} ,{"count": "$ip_count02", "binding_type": "$btype02",
                      "mac_address": "$mac02", "assigned_ips": [$assgip02], "label2info":
                      [$l2info02]} '
                    params:
                      $btype00: normal
                      $btype01: normal
                      $btype02: normal
                      $assgip00:
                        list_join:
                        - ','
                        - - list_join:
                            - ''
                            - - '"'
                              - get_attribute:
                                - cfed_1_int_ctrl0_port_0
                                - fixed_ips
                                - 0
                                - ip_address
                              - '"'
                      $assgip01:
                        list_join:
                        - ','
                        - - list_join:
                            - ''
                            - - '"'
                              - get_attribute:
                                - cfed_1_int_ctrl1_port_1
                                - fixed_ips
                                - 0
                                - ip_address
                              - '"'
                      $assgip02:
                        list_join:
                        - ','
                        - - list_join:
                            - ''
                            - - '"'
                              - get_attribute:
                                - cfed_1_sig_port_2
                                - fixed_ips
                                - 0
                                - ip_address
                              - '"'
                          - list_join:
                            - ''
                            - - '"'
                              - get_attribute:
                                - cfed_1_sig_port_2
                                - fixed_ips
                                - 1
                                - ip_address
                              - '"'
                      $mac01:
                        get_attribute:
                        - cfed_1_int_ctrl1_port_1
                        - mac_address
                      $mac02:
                        get_attribute:
                        - cfed_1_sig_port_2
                        - mac_address
                      $mac00:
                        get_attribute:
                        - cfed_1_int_ctrl0_port_0
                        - mac_address
                      $l2info01:
                        str_replace:
                          template: '{"label": "connectivity_ip", "subnet": "INTERNALnet1",
                            "ip": "$ip00"}'
                          params:
                            $ip00: ''
                      $l2info00:
                        str_replace:
                          template: '{"label": "connectivity_ip", "subnet": "INTERNALnet0",
                            "ip": "$ip00"}'
                          params:
                            $ip00: ''
                      $ip_count00: 0
                      $l2info02:
                        str_replace:
                          template: '{"label": "servicetype=cfed-0;fixed;nitype=dbaas;subnet=sig",
                            "subnet": "sig", "ip": "$ip00"},{"label": "servicetype=cfed-0;fixed;nitype=dbaas;subnet=sigv6",
                            "subnet": "sigv6", "ip": "$ip01"}'
                          params:
                            $ip01:
                              get_input:
                              - cfed_sigv6_ipmap_sideB_0_fixed_dbaas
                              - get_input: group_index
                            $ip00:
                              get_input:
                              - cfed_sig_ipmap_sideB_0_fixed_dbaas
                              - get_input: group_index
                      $ip_count01: 0
                      $ip_count02: 2
                $netinfo:
                  get_input: net_info_str
                $v4gateway:
                  get_input:
                  - config_info
                  - v4_default_gateway
                $servcfg:
                  get_input:
                  - config_info
                  - poolinfo
                $v4static_routes:
                  get_input:
                  - config_info
                  - v4_static_routes
                $v6gateway:
                  get_input:
                  - config_info
                  - v6_default_gateway
                $vmname:
                  get_input:
                  - cfed_names
                  - get_attribute:
                    - cfed_mapidx_1
                    - idx1
                $v6static_routes:
                  get_input:
                  - config_info
                  - v6_static_routes
          /storage/cloud/.ssh/SSHprivkey:
            get_input: ssh_private_key
        name:
          get_input:
          - cfed_names
          - get_attribute:
            - cfed_mapidx_1
            - idx1
    cfed_1_int_ctrl1_port_1:
      type: org.openecomp.resource.cp.v2.extNeutronCP
      properties:
        subnetpoolid:
          get_input: port_cfed_1_int_ctrl1_port_1_subnetpoolid
        allowed_address_pairs: [
          ]
        binding:vnic_type: normal
        related_networks:
          get_input: port_cfed_1_int_ctrl1_port_1_related_networks
        network:
          get_input: int_ctrl1_net_id
        replacement_policy: AUTO
        ip_requirements:
          get_input: port_cfed_1_int_ctrl1_port_1_ip_requirements
        security_groups:
        - get_input: int_ctrl1_Sec_Grp
        network_role:
          get_input: port_cfed_1_int_ctrl1_port_1_network_role
        fixed_ips: [
          ]
        mac_requirements:
          get_input: port_cfed_1_int_ctrl1_port_1_mac_requirements
        subinterface_indicator: false
        name:
          str_replace:
            template: $vnf_name_cfed_1_int_ctrl1_port_1
            params:
              $vnf_name:
                get_input: vnf_name
        exCP_naming:
          get_input: port_cfed_1_int_ctrl1_port_1_exCP_naming
        vlan_requirements:
          get_input: port_cfed_1_int_ctrl1_port_1_vlan_requirements
        network_role_tag:
          get_input: port_cfed_1_int_ctrl1_port_1_network_role_tag
        order:
          get_input: port_cfed_1_int_ctrl1_port_1_order
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: cfed_server_1
          relationship: tosca.relationships.network.BindsTo
      capabilities:
        port_mirroring:
          properties:
            connection_point:
              nf_type: ''
              nfc_type: ''
              nf_naming_code: ''
              nfc_naming_code: cfed_server_1
              network_role:
                get_input: port_cfed_1_int_ctrl1_port_1_network_role
              pps_capacity: ''
    cfed_1_int_ctrl0_port_0:
      type: org.openecomp.resource.cp.v2.extNeutronCP
      properties:
        subnetpoolid:
          get_input: port_cfed_1_int_ctrl0_port_0_subnetpoolid
        allowed_address_pairs: [
          ]
        binding:vnic_type: normal
        related_networks:
          get_input: port_cfed_1_int_ctrl0_port_0_related_networks
        network:
          get_input: int_ctrl0_net_id
        replacement_policy: AUTO
        ip_requirements:
          get_input: port_cfed_1_int_ctrl0_port_0_ip_requirements
        security_groups:
        - get_input: int_ctrl0_Sec_Grp
        network_role:
          get_input: port_cfed_1_int_ctrl0_port_0_network_role
        fixed_ips: [
          ]
        mac_requirements:
          get_input: port_cfed_1_int_ctrl0_port_0_mac_requirements
        subinterface_indicator: false
        name:
          str_replace:
            template: $vnf_name_cfed_1_int_ctrl0_port_0
            params:
              $vnf_name:
                get_input: vnf_name
        exCP_naming:
          get_input: port_cfed_1_int_ctrl0_port_0_exCP_naming
        vlan_requirements:
          get_input: port_cfed_1_int_ctrl0_port_0_vlan_requirements
        network_role_tag:
          get_input: port_cfed_1_int_ctrl0_port_0_network_role_tag
        order:
          get_input: port_cfed_1_int_ctrl0_port_0_order
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: cfed_server_1
          relationship: tosca.relationships.network.BindsTo
      capabilities:
        port_mirroring:
          properties:
            connection_point:
              nf_type: ''
              nfc_type: ''
              nf_naming_code: ''
              nfc_naming_code: cfed_server_1
              network_role:
                get_input: port_cfed_1_int_ctrl0_port_0_network_role
              pps_capacity: ''
    cfed_1_sig_port_2:
      type: org.openecomp.resource.cp.v2.extNeutronCP
      properties:
        subnetpoolid:
          get_input: port_cfed_1_sig_port_2_subnetpoolid
        allowed_address_pairs: [
          ]
        binding:vnic_type: normal
        related_networks:
          get_input: port_cfed_1_sig_port_2_related_networks
        network:
          get_input: sig_net_id
        replacement_policy: AUTO
        ip_requirements:
          get_input: port_cfed_1_sig_port_2_ip_requirements
        security_groups:
        - get_input: sig_Sec_Grp
        network_role:
          get_input: port_cfed_1_sig_port_2_network_role
        fixed_ips:
        - subnet:
            get_input: sig_subnet_id
          ip_address:
            get_input:
            - cfed_sig_ipmap_sideB_0_fixed_dbaas
            - get_input: group_index
        - subnet:
            get_input: sigv6_v6_subnet_id
          ip_address:
            get_input:
            - cfed_sigv6_ipmap_sideB_0_fixed_dbaas
            - get_input: group_index
        mac_requirements:
          get_input: port_cfed_1_sig_port_2_mac_requirements
        subinterface_indicator: false
        name:
          str_replace:
            template: $vnf_name_cfed_1_sig_port_2
            params:
              $vnf_name:
                get_input: vnf_name
        exCP_naming:
          get_input: port_cfed_1_sig_port_2_exCP_naming
        vlan_requirements:
          get_input: port_cfed_1_sig_port_2_vlan_requirements
        network_role_tag:
          get_input: port_cfed_1_sig_port_2_network_role_tag
        order:
          get_input: port_cfed_1_sig_port_2_order
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: cfed_server_1
          relationship: tosca.relationships.network.BindsTo
      capabilities:
        port_mirroring:
          properties:
            connection_point:
              nf_type: ''
              nfc_type: ''
              nf_naming_code: ''
              nfc_naming_code: cfed_server_1
              network_role:
                get_input: port_cfed_1_sig_port_2_network_role
              pps_capacity: ''
  groups:
    nest_cfed_b_group:
      type: org.openecomp.groups.heat.HeatStack
      properties:
        heat_file: ../Artifacts/nest_cfed_b.yaml
        description: Generate resources for a pair of 'cfed' VMs. ...
      members:
      - cfed_server_1
      - cfed_1_int_ctrl1_port_1
      - cfed_1_int_ctrl0_port_0
      - cfed_1_sig_port_2
  outputs:
    VMB-EXT_IPS:
      description: IP addresses assigned to the first external network.
      value:
      - list_join:
        - ''
        - - '"'
          - get_attr:
            - cfed_1_sig_port_2
            - fixed_ips
            - 0
            - ip_address
          - '"'
      - list_join:
        - ''
        - - '"'
          - get_attr:
            - cfed_1_sig_port_2
            - fixed_ips
            - 1
            - ip_address
          - '"'
    Version:
      description: |
        Template file version number. This should be updated
        each time a non-comment change is made to this file.
      value: K1
  substitution_mappings:
    node_type: org.openecomp.resource.abstract.nodes.heat.cfed
    capabilities:
      network.incoming.bytes_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.incoming.bytes
      network.incoming.bytes_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.incoming.bytes
      network.outpoing.packets_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.outpoing.packets
      disk.device.iops_cfed_server_1:
      - cfed_server_1
      - disk.device.iops
      network.outgoing.bytes.rate_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.outgoing.bytes.rate
      memory_cfed_server_1:
      - cfed_server_1
      - memory
      disk.device.read.requests.rate_cfed_server_1:
      - cfed_server_1
      - disk.device.read.requests.rate
      disk.write.bytes_cfed_server_1:
      - cfed_server_1
      - disk.write.bytes
      network.outgoing.bytes.rate_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.outgoing.bytes.rate
      disk.write.requests_cfed_server_1:
      - cfed_server_1
      - disk.write.requests
      disk.device.write.bytes_cfed_server_1:
      - cfed_server_1
      - disk.device.write.bytes
      instance_cfed_server_1:
      - cfed_server_1
      - instance
      disk.write.bytes.rate_cfed_server_1:
      - cfed_server_1
      - disk.write.bytes.rate
      network.incoming.bytes.rate_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.incoming.bytes.rate
      network.incoming.bytes.rate_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.incoming.bytes.rate
      network.incoming.packets_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.incoming.packets
      host_cfed_server_1:
      - cfed_server_1
      - host
      attachment_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - attachment
      forwarder_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - forwarder
      disk.latency_cfed_server_1:
      - cfed_server_1
      - disk.latency
      disk.device.capacity_cfed_server_1:
      - cfed_server_1
      - disk.device.capacity
      network.outgoing.bytes_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.outgoing.bytes
      cpu_util_cfed_server_1:
      - cfed_server_1
      - cpu_util
      scalable_cfed_server_1:
      - cfed_server_1
      - scalable
      network.outgoing.bytes.rate_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.outgoing.bytes.rate
      disk.device.allocation_cfed_server_1:
      - cfed_server_1
      - disk.device.allocation
      cpu_cfed_server_1:
      - cfed_server_1
      - cpu
      network.outpoing.packets_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.outpoing.packets
      attachment_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - attachment
      disk.iops_cfed_server_1:
      - cfed_server_1
      - disk.iops
      network.incoming.packets.rate_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.incoming.packets.rate
      network.outgoing.packets.rate_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.outgoing.packets.rate
      disk.device.write.requests.rate_cfed_server_1:
      - cfed_server_1
      - disk.device.write.requests.rate
      feature_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - feature
      binding_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - binding
      disk.read.bytes_cfed_server_1:
      - cfed_server_1
      - disk.read.bytes
      network.incoming.bytes_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.incoming.bytes
      forwarder_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - forwarder
      disk.device.usage_cfed_server_1:
      - cfed_server_1
      - disk.device.usage
      binding_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - binding
      binding_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - binding
      disk.device.read.requests_cfed_server_1:
      - cfed_server_1
      - disk.device.read.requests
      memory.resident_cfed_server_1:
      - cfed_server_1
      - memory.resident
      disk.device.read.bytes_cfed_server_1:
      - cfed_server_1
      - disk.device.read.bytes
      vcpus_cfed_server_1:
      - cfed_server_1
      - vcpus
      network.outgoing.packets.rate_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.outgoing.packets.rate
      network.incoming.packets_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.incoming.packets
      network.incoming.packets_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.incoming.packets
      disk.read.bytes.rate_cfed_server_1:
      - cfed_server_1
      - disk.read.bytes.rate
      network.incoming.packets.rate_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.incoming.packets.rate
      network.incoming.packets.rate_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.incoming.packets.rate
      feature_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - feature
      disk.device.latency_cfed_server_1:
      - cfed_server_1
      - disk.device.latency
      binding_cfed_server_1:
      - cfed_server_1
      - binding
      disk.read.requests_cfed_server_1:
      - cfed_server_1
      - disk.read.requests
      network.outgoing.bytes_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.outgoing.bytes
      endpoint_cfed_server_1:
      - cfed_server_1
      - endpoint
      forwarder_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - forwarder
      os_cfed_server_1:
      - cfed_server_1
      - os
      feature_cfed_server_1:
      - cfed_server_1
      - feature
      disk.ephemeral.size_cfed_server_1:
      - cfed_server_1
      - disk.ephemeral.size
      network.outpoing.packets_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.outpoing.packets
      disk.root.size_cfed_server_1:
      - cfed_server_1
      - disk.root.size
      network.outgoing.bytes_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - network.outgoing.bytes
      disk.device.read.bytes.rate_cfed_server_1:
      - cfed_server_1
      - disk.device.read.bytes.rate
      disk.usage_cfed_server_1:
      - cfed_server_1
      - disk.usage
      disk.allocation_cfed_server_1:
      - cfed_server_1
      - disk.allocation
      cpu.delta_cfed_server_1:
      - cfed_server_1
      - cpu.delta
      attachment_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - attachment
      disk.write.requests.rate_cfed_server_1:
      - cfed_server_1
      - disk.write.requests.rate
      network.incoming.bytes.rate_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - network.incoming.bytes.rate
      feature_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - feature
      disk.capacity_cfed_server_1:
      - cfed_server_1
      - disk.capacity
      disk.device.write.bytes.rate_cfed_server_1:
      - cfed_server_1
      - disk.device.write.bytes.rate
      disk.device.write.requests_cfed_server_1:
      - cfed_server_1
      - disk.device.write.requests
      memory.usage_cfed_server_1:
      - cfed_server_1
      - memory.usage
      network.outgoing.packets.rate_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - network.outgoing.packets.rate
      port_mirroring_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - port_mirroring
      port_mirroring_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - port_mirroring
      port_mirroring_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - port_mirroring
    requirements:
      dependency_cfed_server_1:
      - cfed_server_1
      - dependency
      dependency_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - dependency
      dependency_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - dependency
      link_cfed_1_int_ctrl0_port_0:
      - cfed_1_int_ctrl0_port_0
      - link
      link_cfed_1_int_ctrl1_port_1:
      - cfed_1_int_ctrl1_port_1
      - link
      link_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - link
      dependency_cfed_1_sig_port_2:
      - cfed_1_sig_port_2
      - dependency
      local_storage_cfed_server_1:
      - cfed_server_1
      - local_storage