aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/heatPseudoParameters/usedFromMainHeat/expectedoutputfiles/MainServiceTemplate.yaml
blob: c8e20657c34216dc27697df38e40b8b34bd4142b (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
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: Main
imports:
- openecomp_heat_index:
    file: openecomp-heat/_index.yml
- GlobalSubstitutionTypes:
    file: GlobalSubstitutionTypesServiceTemplate.yaml
topology_template:
  inputs:
    vf_module_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: vf_module_id
      type: string
      description: VF Module ID
      default: '888800008888'
    cpm_mgt_gw_ip:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_mgt_gw_ip
      type: string
      description: Default Gateway for the Management Interface, set during boot time
      default: 192.168.254.1
    mgt_net_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: mgt_net_id
      type: string
      description: Network used by the Management interface
      default: 1024b82c-0049-4503-8b0b-eb5ff952e101
    ctrl_fabric_cidr:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: ctrl_fabric_cidr
      type: string
      description: CIDR of Control Fabric Network
    data3_subnet_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data3_subnet_id
      type: string
      description: Subnet used by the fourth Data interface
      default: 90ad7ea9-596f-45f4-8869-226fc876b106
    ctrl_fabric_net_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: ctrl_fabric_net_id
      type: string
      description: Network used by the control fabric interface
      default: 1024b82c-0049-4503-8b0b-eb5ff952e102
    data0_subnet_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data0_subnet_id
      type: string
      description: Subnet used by the Data interface
      default: 90ad7ea9-596f-45f4-8869-226fc876b103
    cpmaSlot:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpmaSlot
      type: string
      description: The slot value assigned to CPMA
      default: A
    OS::stack_id:
      type: string
      required: false
    vnf_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: vnf_id
      type: string
      description: VNF ID
      default: '111100001111'
    cpm_mgt_ip_1:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_mgt_ip_1
      type: string
      description: Fixed IP that will be used by the Management Interface on CPMB
      default: 192.168.254.12
    cpm_smbios:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_smbios
      type: string
      description: Parameters to be passed to the CPM at boot up as key-value pairs
      default: 'TiMOS: slot=$slt chassis=VSR card=cpm-v license-file=license.txt address=$adrp/24@active
        address=$adrs/24@standby static-route=192.168.0.0/16@$oamGw persist=on features=795'
    cpm_mgt_ip_0:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_mgt_ip_0
      type: string
      description: Fixed IP that will be used by the Management Interface on CPMA
      default: 192.168.254.11
    availability_zone_0:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: availability_zone_0
      type: string
      description: Availability zone where this component should be instantiated
      default: nova
    cpm_name_1:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_name_1
      type: string
      description: VM name for CPM B
      default: vbng1-cpmb
    OS::stack_name:
      type: string
      required: false
    cpm_flavor_name:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_flavor_name
      type: string
      description: Flavor of the CPM VNF to be used
      default: m1.medium
    data2_subnet_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data2_subnet_id
      type: string
      description: Subnet used by the third Data interface
      default: 90ad7ea9-596f-45f4-8869-226fc876b105
    cpm_mtu:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_mtu
      type: string
      description: MTU size in bytes
      default: '9000'
    cpm_name_0:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_name_0
      type: string
      description: VM name for CPM A
      default: vbng1-cpma
    iom_image_name:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: iom_image_name
      type: string
      description: Image to be used for the IOM instance
      default: VSR-14.0R4
    iom1Slot:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: iom1Slot
      type: string
      description: The slot value assigned to IOM1
      default: '1'
    iom_flavor_name:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: iom_flavor_name
      type: string
      description: Flavor of the IOM VNF to be used
      default: m1.medium
    iom_name_0:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: iom_name_0
      type: string
      description: VM name for IOM 1
      default: vbng1-iom1
    data1_net_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data1_net_id
      type: string
      description: Network used by the second Data interface
      default: 1024b82c-0049-4503-8b0b-eb5ff952e104
    cpm_mgt_cidr:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_mgt_cidr
      type: string
      description: Management network to be used by CPM
      default: 192.168.254.0/24
    mgt_subnet_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: mgt_subnet_id
      type: string
      description: Subnet used by the Management interface
      default: 90ad7ea9-596f-45f4-8869-226fc876b101
    ctrl_fabric_subnet_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: ctrl_fabric_subnet_id
      type: string
      description: Subnet used by the control fabric interface
      default: 90ad7ea9-596f-45f4-8869-226fc876b102
    data0_net_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data0_net_id
      type: string
      description: Network used by the Data interface
      default: 1024b82c-0049-4503-8b0b-eb5ff952e103
    data2_net_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data2_net_id
      type: string
      description: Network used by the third Data interface
      default: 1024b82c-0049-4503-8b0b-eb5ff952e105
    iom_mtu:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: iom_mtu
      type: string
      description: MTU size in bytes
      default: '9000'
    OS::project_id:
      type: string
      required: false
    cpm_image_name:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpm_image_name
      type: string
      description: Image to be used for the CPM instance
      default: VSR-14.0R4
    cpmbSlot:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: cpmbSlot
      type: string
      description: The slot value assigned to CPMB
      default: B
    iom_smbios:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: iom_smbios
      type: string
      description: Parameters to be passed to the IOM at boot up as key-value pairs
      default: 'TiMOS: slot=$slt chassis=VSR card=iom-v mda/1=m20-v features=795'
    data3_net_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data3_net_id
      type: string
      description: Network used by the fourth Data interface
      default: 1024b82c-0049-4503-8b0b-eb5ff952e106
    data1_subnet_id:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: data1_subnet_id
      type: string
      description: Subnet used by the second Data interface
      default: 90ad7ea9-596f-45f4-8869-226fc876b104
    stack_name:
      hidden: false
      immutable: false
      annotations:
        source:
          type: org.openecomp.annotations.Source
          properties:
            vf_module_label:
            - VSR_base_hot
            source_type: HEAT
            param_name: stack_name
      type: string
      description: Name of the HEAT stack
      default:
        type: string
  node_templates:
    IOM1:
      type: org.openecomp.resource.abstract.nodes.heat.VSR_IOM_template_nested
      directives:
      - substitutable
      properties:
        vf_module_id:
          get_input: vf_module_id
        iom_image_name:
          get_input: iom_image_name
        mgt_net_id:
          get_input: mgt_net_id
        data3_subnet_id:
          get_input: data3_subnet_id
        ctrl_fabric_net_id:
          get_input: ctrl_fabric_net_id
        iom_flavor_name:
          get_input: iom_flavor_name
        security_group: sec_group
        iom_slot:
          get_input: iom1Slot
        data0_subnet_id:
          get_input: data0_subnet_id
        data1_net_id:
          get_input: data1_net_id
        mgt_subnet_id:
          get_input: mgt_subnet_id
        service_template_filter:
          substitute_service_template: VSR_IOM_template_nestedServiceTemplate.yaml
        ctrl_fabric_subnet_id:
          get_input: ctrl_fabric_subnet_id
        data0_net_id:
          get_input: data0_net_id
        data2_net_id:
          get_input: data2_net_id
        iom_mtu:
          get_input: iom_mtu
        vnf_id:
          get_input: vnf_id
        availability_zone_0:
          get_input: availability_zone_0
        iom_smbios:
          str_replace:
            template:
              get_input: iom_smbios
            params:
              $slt:
                get_input: iom1Slot
        data2_subnet_id:
          get_input: data2_subnet_id
        data3_net_id:
          get_input: data3_net_id
        data1_subnet_id:
          get_input: data1_subnet_id
        stack_name:
          get_input: OS::stack_name
        vm_name:
          get_input: iom_name_0
    sec_group:
      type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
      properties:
        name: vsr_security_group
        description: Security group for vSR
        rules:
        - protocol: tcp
          remote_ip_prefix: 0.0.0.0/0
          port_range_max: 22
          port_range_min: 22
        - protocol: icmp
          remote_ip_prefix: 0.0.0.0/0
          direction: ingress
      requirements:
      - port:
          capability: attachment_cpm_mgt_0_port
          node: CPMA
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_cpm_ctrl_fabric_0_port
          node: CPMA
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_cpm_mgt_0_port
          node: CPMB
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_cpm_ctrl_fabric_0_port
          node: CPMB
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_iom_data_3_port
          node: IOM1
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_iom_data_2_port
          node: IOM1
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_iom_mgt_0_port
          node: IOM1
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_iom_ctrl_fabric_0_port
          node: IOM1
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_iom_data_0_port
          node: IOM1
          relationship: org.openecomp.relationships.AttachesTo
      - port:
          capability: attachment_iom_data_1_port
          node: IOM1
          relationship: org.openecomp.relationships.AttachesTo
    CPMB:
      type: org.openecomp.resource.abstract.nodes.heat.VSR_CPM_base_template_nested
      directives:
      - substitutable
      properties:
        vf_module_id:
          get_input: vf_module_id
        mgt_net_id:
          get_input: mgt_net_id
        cpm_mgt_ip:
          get_input: cpm_mgt_ip_1
        cpm_slot:
          get_input: cpmbSlot
        ctrl_fabric_net_id:
          get_input: ctrl_fabric_net_id
        security_group: sec_group
        cpm_mgt_cidr:
          get_input: cpm_mgt_cidr
        mgt_subnet_id:
          get_input: mgt_subnet_id
        service_template_filter:
          substitute_service_template: VSR_CPM_base_template_nestedServiceTemplate.yaml
        ctrl_fabric_subnet_id:
          get_input: ctrl_fabric_subnet_id
        vnf_id:
          get_input: vnf_id
        cpm_smbios:
          str_replace:
            template:
              get_input: cpm_smbios
            params:
              $adrs:
                get_input: cpm_mgt_ip_1
              $slt:
                get_input: cpmbSlot
              $adrp:
                get_input: cpm_mgt_ip_0
              $oamGw:
                get_input: cpm_mgt_gw_ip
        cpm_image_name:
          get_input: cpm_image_name
        availability_zone_0:
          get_input: availability_zone_0
        cpm_flavor_name:
          get_input: cpm_flavor_name
        cpm_mtu:
          get_input: cpm_mtu
        stack_name:
          get_input: OS::stack_name
        vm_name:
          get_input: cpm_name_1
    CPMA:
      type: org.openecomp.resource.abstract.nodes.heat.VSR_CPM_base_template_nested
      directives:
      - substitutable
      properties:
        vf_module_id:
          get_input: vf_module_id
        mgt_net_id:
          get_input: mgt_net_id
        cpm_mgt_ip:
          get_input: cpm_mgt_ip_0
        cpm_slot:
          get_input: cpmaSlot
        ctrl_fabric_net_id:
          get_input: ctrl_fabric_net_id
        security_group: sec_group
        cpm_mgt_cidr:
          get_input: cpm_mgt_cidr
        mgt_subnet_id:
          get_input: mgt_subnet_id
        service_template_filter:
          substitute_service_template: VSR_CPM_base_template_nestedServiceTemplate.yaml
        ctrl_fabric_subnet_id:
          get_input: ctrl_fabric_subnet_id
        vnf_id:
          get_input: vnf_id
        cpm_smbios:
          str_replace:
            template:
              get_input: cpm_smbios
            params:
              $adrs:
                get_input: cpm_mgt_ip_1
              $slt:
                get_input: cpmaSlot
              $adrp:
                get_input: cpm_mgt_ip_0
              $oamGw:
                get_input: cpm_mgt_gw_ip
        stack_id:
          get_input: OS::stack_id
        cpm_image_name:
          get_input: cpm_image_name
        availability_zone_0:
          get_input: availability_zone_0
        cpm_flavor_name:
          get_input: cpm_flavor_name
        cpm_mtu:
          get_input: cpm_mtu
        stack_name:
          get_input: OS::stack_name
        vm_name:
          get_input: cpm_name_0
  groups:
    VSR_base_hot_group:
      type: org.openecomp.groups.heat.HeatStack
      properties:
        heat_file: ../Artifacts/VSR_base_hot.yaml
      members:
      - IOM1
      - sec_group
      - CPMB
      - CPMA
  outputs:
    out1:
      value:
        get_input: OS::project_id