aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/novaservergroups/dynamicPolicy/expectedoutputfiles/MainServiceTemplate.yaml
blob: a8514c29213d9e68ee459209171c933242e29e88 (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
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: Main
imports:
- openecomp_heat_index:
    file: openecomp-heat/_index.yml
node_types:
  org.openecomp.resource.vfc.nodes.heat.smp:
    derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
topology_template:
  inputs:
    hostid_fe1:
      hidden: false
      immutable: false
      type: string
      description: FE1 Hostid (from Ulticom license)
    ip_address_stp2:
      hidden: false
      immutable: false
      type: string
      description: STP2 IP address
    Mobility_OAM_protected_net_id:
      hidden: false
      immutable: false
      type: string
      description: Network name for OAM
    hostid_fe2:
      hidden: false
      immutable: false
      type: string
      description: FE2 Hostid (from Ulticom license)
    flavor_scp_fe_name:
      hidden: false
      immutable: false
      type: string
      description: SCP FE Flavor
      default: a1.Small
    ip_address_stp1:
      hidden: false
      immutable: false
      type: string
      description: STP1 IP address
    int_vscp_ce_network_net_id:
      hidden: false
      immutable: false
      type: string
      description: Inter-CE Network
    int_vscp_ce_network_cidr:
      hidden: false
      immutable: false
      type: string
      description: Private Network Address (CIDR notation)
    cluster_type:
      hidden: false
      immutable: false
      type: string
      constraints:
      - valid_values:
        - Test
        - Prod
    be_Mobility_OAM_protected_ip_1:
      label: be_1 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: be_1 OAM ip address
    be_Mobility_OAM_protected_ip_2:
      label: be_2 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: be_2 OAM ip address
    be_Mobility_OAM_protected_ip_0:
      label: be_0 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: be_0 OAM ip address
    ip_address_dra:
      hidden: false
      immutable: false
      type: string
      description: DRA VIP address
    image_smp_name:
      hidden: false
      immutable: false
      type: string
      description: SCP SMP image
      default: asc_base_image_smp
    fe_connectivity:
      hidden: false
      immutable: false
      type: string
      constraints:
      - valid_values:
        - NEE
        - STP
    lab_name:
      hidden: false
      immutable: false
      type: string
      description: Lab name
    smp_Mobility_OAM_protected_ip_1:
      label: smp_1 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: smp_1 OAM ip address
    fe_SIGNET_vrf_B1_direct_ip_0:
      label: fe1 SIGTRAN ip address
      hidden: false
      immutable: false
      type: string
      description: fe1 SIGTRAN ip address
    smp_Mobility_OAM_protected_ip_0:
      label: smp_0 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: smp_0 OAM ip address
    int_vscp_cluster_net_id:
      hidden: false
      immutable: false
      type: string
      description: LAN3 Cluster
    be_Mobility_OAM_protected_ip_3:
      label: be_3 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: be_3 OAM ip address
    be_Mobility_OAM_protected_ip_4:
      label: be_4 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: be_4 OAM ip address
    hostname_nee1:
      hidden: false
      immutable: false
      type: string
      description: NEE1 Hostname (from Ulticom license)
    int_vscp_fe_cluster_net_id:
      hidden: false
      immutable: false
      type: string
      description: LAN2 FE Cluster/KA
    SIGNET_vrf_A1_direct_net_id:
      hidden: false
      immutable: false
      type: string
      description: Network name for SIGTRAN_A
    key_name:
      hidden: false
      immutable: false
      type: string
      description: keypair to enable SSH access to the instance.
      default: vSCP-keypair
    int_vscp_fe_cluster_cidr:
      hidden: false
      immutable: false
      type: string
      description: Private Network2 Address (CIDR notation)
    fe_name_1:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_FE2
    fe_name_0:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_FE1
    policy_value:
      hidden: false
      immutable: false
      type: string
    be_name_0:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_BE1
    int_vscp_cluster_cidr:
      hidden: false
      immutable: false
      type: string
      description: Private Network3 Address (CIDR notation)
    be_name_1:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_BE2
    be_name_2:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_BE3
    point_code_stp:
      hidden: false
      immutable: false
      type: string
      description: STP virtual point code (in "zone-cluster-member" format)
    be_name_3:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_BE4
    be_name_4:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSCP_BE5
    global_title_scp:
      hidden: false
      immutable: false
      type: string
      description: vSCP Global Title address
    vnf_name:
      hidden: false
      immutable: false
      type: string
      description: Unique name for this VNF instance
      default: This_is_the_SCP_name
    be_Cricket_OCS_protected_ip_2:
      label: be3 Cricket_OCS ip address
      hidden: false
      immutable: false
      type: string
      description: be3 Cricket_OCS ip address
    fe_Mobility_OAM_protected_ip_0:
      label: fe_0 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: fe_0 OAM ip address
    hostname_fe1:
      hidden: false
      immutable: false
      type: string
      description: FE1 Hostname (from Ulticom license)
    be_Cricket_OCS_protected_ip_1:
      label: be2 Cricket_OCS ip address
      hidden: false
      immutable: false
      type: string
      description: be2 Cricket_OCS ip address
    hostname_fe2:
      hidden: false
      immutable: false
      type: string
      description: FE2 Hostname (from Ulticom license)
    be_Cricket_OCS_protected_ip_4:
      label: be5 Cricket_OCS ip address
      hidden: false
      immutable: false
      type: string
      description: be5 Cricket_OCS ip address
    be_Cricket_OCS_protected_ip_3:
      label: be4 Cricket_OCS ip address
      hidden: false
      immutable: false
      type: string
      description: be4 Cricket_OCS ip address
    fe_Mobility_OAM_protected_ip_1:
      label: fe_1 OAM ip address
      hidden: false
      immutable: false
      type: string
      description: fe_1 OAM ip address
    be_Cricket_OCS_protected_ip_0:
      label: be1 Cricket_OCS ip address
      hidden: false
      immutable: false
      type: string
      description: be1 Cricket_OCS ip address
    route_table_fe1:
      hidden: false
      immutable: false
      type: string
      description: Additional route table for FE1
    Cricket_OCS_protected_net_id:
      hidden: false
      immutable: false
      type: string
      description: Network name for CRICKET_OCS
    smp_name_2:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSMP2
    vnf_id:
      hidden: false
      immutable: false
      type: string
      description: Unique ID for this VNF instance
      default: This_is_ths_SCP_id
    smp_name_1:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSMP2
    flavor_smp_name:
      hidden: false
      immutable: false
      type: string
      description: SCP SMP Flavor
      default: a1.Small
    image_scp_be_name:
      hidden: false
      immutable: false
      type: string
      description: SCP BE image
      default: asc_base_image_be
    smp_name_0:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vSMP1
    route_table_fe2:
      hidden: false
      immutable: false
      type: string
      description: Additional route table for FE2
    hostid_nee1:
      hidden: false
      immutable: false
      type: string
      description: NEE1 Hostid (from Ulticom license)
    SIGNET_vrf_B1_direct_net_id:
      hidden: false
      immutable: false
      type: string
      description: Network name for SIGTRAN_B
    fe_SIGNET_vrf_A1_direct_ip_0:
      label: fe2 SIGTRAN ip address
      hidden: false
      immutable: false
      type: string
      description: fe2 SIGTRAN ip address
    availability_zone_0:
      hidden: false
      immutable: false
      type: string
    nee_name_0:
      hidden: false
      immutable: false
      type: string
      description: name of VM
      default: vNEE
    ip_port_stp1:
      hidden: false
      immutable: false
      type: string
      description: STP1 IP port
    ip_port_stp2:
      hidden: false
      immutable: false
      type: string
      description: STP2 IP port
    image_scp_fe_name:
      hidden: false
      immutable: false
      type: string
      description: SCP FE image
      default: asc_base_image_fe
    flavor_scp_be_name:
      hidden: false
      immutable: false
      type: string
      description: SCP BE Flavor
      default: a1.Small
    policyListParam:
      hidden: false
      immutable: false
      type: list
      description: Policy server group. affinity/anti-affinity
      constraints:
      - valid_values:
        - affinity
        - anti-affinity
      entry_schema:
        type: string
    security_group_name:
      label: vSCP security group name
      hidden: false
      immutable: false
      type: string
      description: vSCP security group name
    ip_port_fe2:
      hidden: false
      immutable: false
      type: string
      description: FE2 IP port in SIGTRAN network
    route_table_be:
      hidden: false
      immutable: false
      type: string
      description: Additional route table for BEs
    ip_port_fe1:
      hidden: false
      immutable: false
      type: string
      description: FE1 IP port in SIGTRAN network
    port_name:
      hidden: false
      immutable: false
      type: string
      description: port name
      default: port_name
    point_code_scp:
      hidden: false
      immutable: false
      type: string
      description: vSCP point code (in "zone-cluster-member" format)
    global_title_stp:
      hidden: false
      immutable: false
      type: string
      description: STP Global Title address
    point_code_stp1:
      hidden: false
      immutable: false
      type: string
      description: STP1 point code (in "zone-cluster-member" format)
    point_code_stp2:
      hidden: false
      immutable: false
      type: string
      description: STP2 point code (in "zone-cluster-member" format)
  node_templates:
    server_smp2:
      type: org.openecomp.resource.vfc.nodes.heat.smp
      properties:
        flavor:
          get_input: flavor_smp_name
        availability_zone:
          get_input: availability_zone_0
        image:
          get_input: image_smp_name
        metadata:
          jx_vm_role: smp2
          vnf_id:
            get_input: vnf_id
          jx_lab_name:
            get_input: lab_name
        user_data_format: RAW
        name:
          get_input: smp_name_2
        scheduler_hints:
          group: FE_SMP_Affinity_group
    server_smp3:
      type: org.openecomp.resource.vfc.nodes.heat.smp
      properties:
        flavor:
          get_input: flavor_smp_name
        availability_zone:
          get_input: availability_zone_0
        image:
          get_input: image_smp_name
        metadata:
          jx_vm_role: smp2
          vnf_id:
            get_input: vnf_id
          jx_lab_name:
            get_input: lab_name
        user_data_format: RAW
        name:
          get_input: smp_name_2
        scheduler_hints:
          group4: UNSUPPORTED_RESOURCE_dynamicPolicy3
          group3: UNSUPPORTED_RESOURCE_dynamicPolicy2
          group2: UNSUPPORTED_RESOURCE_dynamicPolicy1
          group1: FE_SMP_Affinity_group
    port3:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        replacement_policy: AUTO
        ip_requirements:
        - ip_version: 4
          ip_count_required:
            is_required: false
          floating_ip_count_required:
            is_required: false
        mac_requirements:
          mac_count_required:
            is_required: false
        network:
          get_input: port_name
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: server_smp3
          relationship: tosca.relationships.network.BindsTo
    port4:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        replacement_policy: AUTO
        ip_requirements:
        - ip_version: 4
          ip_count_required:
            is_required: false
          floating_ip_count_required:
            is_required: false
        mac_requirements:
          mac_count_required:
            is_required: false
        network:
          get_input: port_name
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: server_smp3
          relationship: tosca.relationships.network.BindsTo
    port1:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        replacement_policy: AUTO
        ip_requirements:
        - ip_version: 4
          ip_count_required:
            is_required: false
          floating_ip_count_required:
            is_required: false
        mac_requirements:
          mac_count_required:
            is_required: false
        network:
          get_input: port_name
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: server_smp1
          relationship: tosca.relationships.network.BindsTo
    server_smp1:
      type: org.openecomp.resource.vfc.nodes.heat.smp
      properties:
        flavor:
          get_input: flavor_smp_name
        availability_zone:
          get_input: availability_zone_0
        image:
          get_input: image_smp_name
        metadata:
          jx_vm_role: smp2
          vnf_id:
            get_input: vnf_id
          jx_lab_name:
            get_input: lab_name
        user_data_format: RAW
        name:
          get_input: smp_name_1
        scheduler_hints:
          group: BE_Affinity_group
    port2:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        replacement_policy: AUTO
        ip_requirements:
        - ip_version: 4
          ip_count_required:
            is_required: false
          floating_ip_count_required:
            is_required: false
        mac_requirements:
          mac_count_required:
            is_required: false
        network:
          get_input: port_name
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: server_smp2
          relationship: tosca.relationships.network.BindsTo
  groups:
    FE_SMP_Affinity_group:
      type: tosca.groups.Root
      members:
      - server_smp2
      - server_smp3
    hot_template_group:
      type: org.openecomp.groups.heat.HeatStack
      properties:
        heat_file: ../Artifacts/hot_template.yml
        description: ASC Template
      members:
      - server_smp2
      - server_smp3
      - port3
      - port4
      - port1
      - server_smp1
      - port2
    BE_Affinity_group:
      type: tosca.groups.Root
      members:
      - server_smp1
  policies:
    BE_Affinity_policy:
      type: org.openecomp.policies.placement.Colocate
      properties:
        name: def
        affinity: host
      targets:
      - BE_Affinity_group
    FE_SMP_Affinity_policy:
      type: org.openecomp.policies.placement.Colocate
      properties:
        name: abc
        affinity: host
      targets:
      - FE_SMP_Affinity_group