blob: 68059be6350a1cc6d36dc03a5388346862328d32 (
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
|
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.cgi_fw:
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
default: dummy_vf_module_id
nimbus_hsl_interface_type:
hidden: false
immutable: false
type: string
description: service_interface_type for ServiceInstance
default: other
cgi_fw_pt_vlan_VM2_name_fqdn:
hidden: false
immutable: false
type: json
description: fqdn of the ServiceInstance in PortTuple Resource
default: [
]
cgi_fw_vmi_ecmp_src_ip:
hidden: false
immutable: false
type: boolean
description: source_ip for the VirtualMachineInterface
default: true
cgi_fw_names:
label: Firewall VM Name
hidden: false
immutable: false
type: list
description: Comma Delimited List of Names for ServiceInstance VMs
default:
- zsde1fcgi02fgi001
- zsde1fcgi02fgi002
entry_schema:
type: string
cgi_fw_vmi_ecmp_dst_ip:
hidden: false
immutable: false
type: boolean
description: destination_ip for the VirtualMachineInterface
default: true
sgi_direct_interface_type:
hidden: false
immutable: false
type: string
description: service_interface_type for ServiceInstance
default: right
vnf_name:
hidden: false
immutable: false
type: string
description: Unique name for this VF instance
default: zrdm3firstnetfcgi02
cgi_fw_flavor_name:
hidden: false
immutable: false
type: string
description: flavor for the ServiceInstance VM
default: m1.xlarge
vf_module_name:
hidden: false
immutable: false
type: string
description: Unique name for this VF Module instance
default: zsde1fcgi02
cgi_fw_st_type:
hidden: false
immutable: false
type: string
description: service_type for the ServiceTemplate
default: firewall
sgi_protected_net_dummy_fqdn:
hidden: false
immutable: false
type: string
description: fq_name for the VirtualNetwork
default: default-domain:ALU-L3:firstnet_dummy_net_1
cgi_fw_vmi_ecmp_src_port:
hidden: false
immutable: false
type: boolean
description: source_port for the VirtualMachineInterface
default: false
sgi_protected_net_dummy1:
hidden: false
immutable: false
type: string
description: name for the VirtualNetwork
vnf_id:
hidden: false
immutable: false
type: string
description: Unique ID for this VF instance
default: dummy_vnf_id
sgi_direct_net_fqdn:
hidden: false
immutable: false
type: string
description: fq_name for the VirtualNetwork
default: default-domain:ALU-L3:fgi_direct
sgi_protected_interface_type:
hidden: false
immutable: false
type: string
description: service_interface_type for ServiceInstance
default: left
cgi_fw_vmi_ecmp_dst_port:
hidden: false
immutable: false
type: boolean
description: destination_port for the VirtualMachineInterface
default: false
sgi_direct_family_v6:
hidden: false
immutable: false
type: string
description: IP Family Address for InstanceIp
default: v6
availability_zone_0:
hidden: false
immutable: false
type: string
description: availability_zone for the ServiceInstance
default: nova
availability_zone_1:
hidden: false
immutable: false
type: string
description: availability_zone for the ServiceInstance
default: nova
nimbus_hsl_net_fqdn:
hidden: false
immutable: false
type: string
description: fq_name for the VirtualNetwork
default: default-domain:ALU-L3:alu-firstnet-net
sgi_protected_net_dummy:
hidden: false
immutable: false
type: string
description: name for the VirtualNetwork
default: firstnet_dummy_net_1
cgi_fw_pt_vlan_VM1_name_fqdn:
hidden: false
immutable: false
type: json
description: fqdn of the ServiceInstance in PortTuple Resource
default: [
]
cgi_fw_vmi_ecmp_configured:
hidden: false
immutable: false
type: boolean
description: hashing_configured for the VirtualMachineInterface
default: true
cgi_fw_vmi_ecmp_ip_protocol:
hidden: false
immutable: false
type: boolean
description: ip_protocol for the VirtualMachineInterface
default: false
oam_protected_net_fqdn:
hidden: false
immutable: false
type: string
description: fq_name for the VirtualNetwork
default: default-domain:ALU-L3:alu_l3_mt_net
oam_protected_interface_type:
hidden: false
immutable: false
type: string
description: service_interface_type for ServiceInstance
default: management
cgi_fw_st_mode:
hidden: false
immutable: false
type: string
description: service_mode for the ServiceTemplate
default: in-network-nat
sgi_direct_ipv6_subnet_id:
hidden: false
immutable: false
type: string
description: Subnet UUID for InstanceIp
default: 4560666e-f306-4d7b-b0ec-a2d4330e9600
contrail_vmi_subinterface:
hidden: false
immutable: false
type: string
port_name:
hidden: false
immutable: false
type: string
cgi_fw_image_name:
hidden: false
immutable: false
type: string
description: image_name for the ServiceInstance VM
default: F5_LB-FW_F5_12_1_HF1_Startup
cgi_fw_oam_protected_ips:
hidden: false
immutable: false
type: list
description: the ips of the management network for CGI FW
default:
- 192.168.50.40
- 192.168.50.41
entry_schema:
type: string
sgi_direct_subnet_id:
hidden: false
immutable: false
type: string
description: Subnet UUID for InstanceIp
default: 63858a9d-696b-4731-b3b3-7c8dfd777b9e
domain:
hidden: false
immutable: false
type: string
description: domain for the ServiceTemplate
default: default-domain
cgi_fw_st_version:
hidden: false
immutable: false
type: float
description: version for the ServiceTemplate
default: 2
constraints:
- in_range:
- 0
- 99
cgi_fw_st_virtualization_type:
hidden: false
immutable: false
type: string
description: service_virtualization_type for the ServiceTemplate
default: virtual-machine
subinterface_name_prefix:
hidden: false
immutable: false
type: string
node_templates:
CGI_FW_OAM_PROTECTED_RVMI_2:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_1
params:
VM_NAME:
get_input:
- cgi_fw_names
- 1
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: oam_protected_net_fqdn
virtual_machine_interface_properties:
service_interface_type:
get_input: oam_protected_interface_type
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_2
relationship: tosca.relationships.network.BindsTo
CGI_FW_SGI_DIRECT_RVMI_1:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_3
params:
VM_NAME:
get_input:
- cgi_fw_names
- 0
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: sgi_direct_net_fqdn
virtual_machine_interface_properties:
service_interface_type:
get_input: sgi_direct_interface_type
port_tuple_refs:
get_input: cgi_fw_pt_vlan_VM1_name_fqdn
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_1
relationship: tosca.relationships.network.BindsTo
CGI_FW_OAM_PROTECTED_RVMI_1:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_1
params:
VM_NAME:
get_input:
- cgi_fw_names
- 0
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: oam_protected_net_fqdn
virtual_machine_interface_properties:
service_interface_type:
get_input: oam_protected_interface_type
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_1
relationship: tosca.relationships.network.BindsTo
CGI_FW_SGI_DIRECT_RVMI_2:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_3
params:
VM_NAME:
get_input:
- cgi_fw_names
- 1
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: sgi_direct_net_fqdn
virtual_machine_interface_properties:
service_interface_type:
get_input: sgi_direct_interface_type
port_tuple_refs:
get_input: cgi_fw_pt_vlan_VM2_name_fqdn
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_2
relationship: tosca.relationships.network.BindsTo
CGI_FW_NIMBUS_HSL_RVMI_2:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_4
params:
VM_NAME:
get_input:
- cgi_fw_names
- 1
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: nimbus_hsl_net_fqdn
virtual_machine_interface_properties:
service_interface_type:
get_input: nimbus_hsl_interface_type
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_2
relationship: tosca.relationships.network.BindsTo
CGI_FW_NIMBUS_HSL_RVMI_1:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_4
params:
VM_NAME:
get_input:
- cgi_fw_names
- 0
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: nimbus_hsl_net_fqdn
virtual_machine_interface_properties:
service_interface_type:
get_input: nimbus_hsl_interface_type
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_1
relationship: tosca.relationships.network.BindsTo
CGI_FW_SERVER_1:
type: org.openecomp.resource.vfc.nodes.heat.cgi_fw
properties:
flavor:
get_input: cgi_fw_flavor_name
availability_zone:
get_input: availability_zone_0
image:
get_input: cgi_fw_image_name
metadata:
vf_module_id:
get_input: vf_module_id
vnf_id:
get_input: vnf_id
vnf_name:
get_input: vnf_name
vf_module_name:
get_input: vf_module_name
contrail_service_instance_ind: true
name:
get_input:
- cgi_fw_names
- 0
scheduler_hints:
group: CGI_FW_RAG_group
CGI_FW_RSG_SI_1:
type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
properties:
name:
str_replace:
template: VNF_NAME_sg_cgi_fw
params:
VNF_NAME:
get_input: vnf_name
description: Security Group of CGI FW ServiceInstance
rules:
- protocol: tcp
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
port_range_max: 65535
direction: egress
port_range_min: 0
- protocol: udp
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
port_range_max: 65535
direction: egress
port_range_min: 0
- protocol: '132'
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
port_range_max: 65535
direction: egress
port_range_min: 0
- protocol: icmp
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
direction: egress
- protocol: tcp
ethertype: IPv6
remote_ip_prefix: ::/0
port_range_max: 65535
direction: egress
port_range_min: 0
- protocol: udp
ethertype: IPv6
remote_ip_prefix: ::/0
port_range_max: 65535
direction: egress
port_range_min: 0
- protocol: '132'
ethertype: IPv6
remote_ip_prefix: ::/0
port_range_max: 65535
direction: egress
port_range_min: 0
- protocol: '58'
ethertype: IPv6
remote_ip_prefix: ::/0
direction: egress
- protocol: tcp
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
port_range_max: 65535
direction: ingress
port_range_min: 0
- protocol: udp
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
port_range_max: 65535
direction: ingress
port_range_min: 0
- protocol: '132'
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
port_range_max: 65535
direction: ingress
port_range_min: 0
- protocol: icmp
ethertype: IPv4
remote_ip_prefix: 0.0.0.0/0
direction: ingress
- protocol: tcp
ethertype: IPv6
remote_ip_prefix: ::/0
port_range_max: 65535
direction: ingress
port_range_min: 0
- protocol: udp
ethertype: IPv6
remote_ip_prefix: ::/0
port_range_max: 65535
direction: ingress
port_range_min: 0
- protocol: '132'
ethertype: IPv6
remote_ip_prefix: ::/0
port_range_max: 65535
direction: ingress
port_range_min: 0
- protocol: '58'
ethertype: IPv6
remote_ip_prefix: ::/0
direction: ingress
CGI_FW_SGI_PROTECTED_RVMI_DUMMY_2:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_dummy
params:
VM_NAME:
get_input:
- cgi_fw_names
- 1
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: sgi_protected_net_dummy_fqdn
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_2
relationship: tosca.relationships.network.BindsTo
CGI_FW_SGI_PROTECTED_RVMI_DUMMY_1:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_vmi_dummy
params:
VM_NAME:
get_input:
- cgi_fw_names
- 0
security_group_refs:
- CGI_FW_RSG_SI_1
virtual_network_refs:
- get_input: sgi_protected_net_dummy_fqdn
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: CGI_FW_SERVER_1
relationship: tosca.relationships.network.BindsTo
CGI_FW_SERVER_2:
type: org.openecomp.resource.vfc.nodes.heat.cgi_fw
properties:
flavor:
get_input: cgi_fw_flavor_name
availability_zone:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- get_input:
- sgi_protected_net_dummy
- 0
- 0
- OS-EXT-IPS-MAC:mac_addr
image:
get_input: cgi_fw_image_name
metadata:
vf_module_id:
get_input: vf_module_id
vnf_id:
get_input: vnf_id
vnf_name:
get_input: vnf_name
vf_module_name:
get_input: vf_module_name
contrail_service_instance_ind: true
name:
get_input:
- cgi_fw_names
- 1
scheduler_hints:
group: CGI_FW_RAG_group
contrail_vmi_subinterface:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_PORT_3
params:
VM_NAME:
get_input: vipr_atm_name_0
virtual_network_refs:
- get_input: oam_protected_net_fqdn
virtual_machine_interface_properties:
service_interface_type: left
port_tuple_refs:
- get_input: port_name
groups:
CGI_FW_RAG_group:
type: tosca.groups.Root
members:
- CGI_FW_SERVER_1
- CGI_FW_SERVER_2
base_firstnet_fgi_frwl_group:
type: org.openecomp.groups.heat.HeatStack
properties:
heat_file: ../Artifacts/base_firstnet_fgi_frwl.yml
description: |
HOT template to create SecurityGroup//ServerGroup//ServiceTemplate:
members:
- CGI_FW_OAM_PROTECTED_RVMI_2
- CGI_FW_SGI_DIRECT_RVMI_1
- CGI_FW_OAM_PROTECTED_RVMI_1
- CGI_FW_SGI_DIRECT_RVMI_2
- CGI_FW_NIMBUS_HSL_RVMI_2
- CGI_FW_NIMBUS_HSL_RVMI_1
- CGI_FW_SERVER_1
- CGI_FW_RSG_SI_1
- CGI_FW_SGI_PROTECTED_RVMI_DUMMY_2
- CGI_FW_SGI_PROTECTED_RVMI_DUMMY_1
- CGI_FW_SERVER_2
- contrail_vmi_subinterface
outputs:
cgi_fw_01_left_mac_10:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- str_split:
- ','
- get_attribute:
- contrail_vmi_subinterface
- virtual_machine_interface_allowed_address_pairs
- allowed_address_pair
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_st_name_fqdn:
description: FQDN of the FW_CGI ServiceTemplate
value:
list_join:
- ':'
- get_attr:
- CGI_FW_RST_1
- fq_name
VMA-EXT_IPS:
description: IP addresses assigned to the first external network.
value:
- UNSUPPORTED_ATTRIBUTE_CGI_FW_SERVER_2.{get_param=[vnf_id, {get_param=sgi_protected_interface_type}]}
VMA-DynamicResource:
description: IP addresses assigned to the first external network.
value:
- UNSUPPORTED_RESOURCE_{get_param=vnf_id}
cgi_fw_01_left_mac_7:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- contrail_vmi_subinterface
- virtual_machine_interface_properties
cgi_fw_01_left_mac_6:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- str_split:
- ','
- string,to,split
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_01_left_mac_9:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- str_split:
- ','
- get_input: sgi_protected_net_dummy
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_01_left_mac_8:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- contrail_vmi_subinterface
- virtual_machine_interface_allowed_address_pairs
- allowed_address_pair
cgi_fw_01_left_mac_3:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- get_input:
- sgi_protected_net_dummy
- 0
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_01_left_mac_2:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- get_input: sgi_protected_net_dummy
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_01_left_mac_5:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- get_attribute:
- CGI_FW_SERVER_2
- addresses
- get_input:
- sgi_protected_net_dummy
- 0
- 0
- OS-EXT-IPS-MAC:mac_addr
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_01_left_mac_4:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_2
- addresses
- get_input:
- sgi_protected_net_dummy
- 0
- get_input:
- sgi_protected_net_dummy1
- 1
- 0
- OS-EXT-IPS-MAC:mac_addr
cgi_fw_01_left_mac_1:
description: cgi fw01 left interface Mac-Address
value:
get_attribute:
- CGI_FW_SERVER_1
- addresses
- get_input: sgi_protected_net_dummy
- 0
- OS-EXT-IPS-MAC:mac_addr
policies:
CGI_FW_RAG_policy:
type: org.openecomp.policies.placement.Antilocate
properties:
name:
str_replace:
template: VNF_NAME_srg_cgi_fw
params:
VNF_NAME:
get_input: vnf_name
container_type: host
targets:
- CGI_FW_RAG_group
|