blob: ced6638077504b319cdccc9b463d3831da56dbde (
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
|
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.vipr_atm:
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 the VF Module instance
default: '5678'
constraints:
- max_length: 255
- min_length: 1
vipr_atm_ha_two_id:
hidden: false
immutable: false
type: string
description: Neutron UUID of the second high availability network for the vIPR-ATM firewal
default: b75e27cf-452f-48ef-b107-8777e645c22d
constraints: [
]
vipr_atm_oam_net_security_groups:
hidden: false
immutable: false
type: list
description: List of the security group to apply to the vIPR-ATM firewall management port
default:
- c2369210-d154-4e4a-984d-047674beb5da
entry_schema:
type: string
vipr_atm_valet_eg_0:
hidden: false
immutable: false
type: string
description: The Valet 1.0 Exclusivity Group for the vIPR-ATM firewall virtual machine
default: CORE_INFRASTRUCTURE_VNFs
constraints:
- max_length: 255
- min_length: 1
vipr_atm_name_0:
hidden: false
immutable: false
type: string
description: Name of the vIPR-ATM firewall virtual machine
default: zrcs1cctvpr001
constraints:
- max_length: 255
- min_length: 1
vipr_atm_image_name:
hidden: false
immutable: false
type: string
description: Image name of the vIPR-ATM firewall virtual machine
default: vipr-atm-pan7.1
constraints: [
]
vnf_name:
hidden: false
immutable: false
type: string
description: Unique Name for this VF instance
default: RD3TX100vfw
constraints:
- max_length: 255
- min_length: 1
vipr_atm_service_left_fqdn:
hidden: false
immutable: false
type: string
description: FQDN of the Left service network for the vIPR-ATM firewall
default: default-domain:vIPR-ATM:vIPR-ATM-service-left
constraints:
- pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
vipr_atm_ha_one_ip_0:
hidden: false
immutable: false
type: string
description: Fixed IP to apply to the vIPR-ATM firewall ha0 port
default: 192.168.35.1
constraints:
- pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
vipr_atm_ha_one_id:
hidden: false
immutable: false
type: string
description: Neutron UUID of the first high availability network for the vIPR-ATM firewall
default: 4abaafc8-b8af-40b9-b0d0-32bd91f958ee
constraints: [
]
vnf_id:
hidden: false
immutable: false
type: string
description: Unique ID for this VF instance
default: '1234'
constraints:
- max_length: 255
- min_length: 1
vipr_atm_flavor_name:
hidden: false
immutable: false
type: string
description: Flavor for the vIPR-ATM firewall virtual machine
default: m1.vipr-atm-pan
constraints: [
]
availability_zone_0:
hidden: false
immutable: false
type: string
description: Availability Zone for the vIPR-ATM firewall virtual machine
default: nova
constraints:
- max_length: 255
- min_length: 1
vipr_atm_server_group:
hidden: false
immutable: false
type: string
description: Server Group with anti-affinity policy for the vIPR-ATM firewall virtual machine
default: 885dbf7f-fcb2-42d2-a694-a5930ce35b71
constraints:
- max_length: 255
- min_length: 1
vipr_atm_service_left_ip_prefix:
hidden: false
immutable: false
type: string
description: Left vIPR-ATM service network IP address prefix
default: 10.254.3.0
constraints:
- pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
vipr_atm_ha_one_cidr:
hidden: false
immutable: false
type: string
description: vIPR-ATM private High Availability Network One IP address CIDR
default: 192.168.35.0/29
constraints:
- pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
vipr_atm_service_right_fqdn:
hidden: false
immutable: false
type: string
description: FQDN of the Right service network for the vIPR-ATM firewall
default: default-domain:vIPR-ATM:vIPR-ATM-service-right
constraints:
- pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
vipr_atm_service_right_ip_prefix_len:
hidden: false
immutable: false
type: float
description: Right vIPR-ATM service network IP address prefix length
default: 24
constraints:
- in_range:
- 0
- 32
vipr_atm_ha_two_ip_0:
hidden: false
immutable: false
type: string
description: Fixed IP to apply to the vIPR-ATM firewall ha1 port
default: 192.168.35.9
constraints:
- pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
vipr_atm_ha_two_cidr:
hidden: false
immutable: false
type: string
description: vIPR-ATM private High Availability Network Two IP address CIDR
default: 192.168.35.8/29
constraints:
- pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
oam_net_id:
hidden: false
immutable: false
type: string
description: Neutron UUID for the managemnet network name of the vIPR-ATM firewall
default: 1ac9d738-f545-413a-a9a2-b44309edc511
constraints: [
]
vipr_atm_service_right_ip_prefix:
hidden: false
immutable: false
type: string
description: Right vIPR-ATM service network IP address prefix
default: 10.254.4.0
constraints:
- pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
vipr_atm_service_left_ip_prefix_len:
hidden: false
immutable: false
type: float
description: Left vIPR-ATM service network IP address prefix length
default: 24
constraints:
- in_range:
- 0
- 32
vipr_atm_contrail_service_instance_fqdn:
hidden: false
immutable: false
type: string
description: FQDN of the vIPR-ATM firewall Contrail service instance for the port tuple
default: default-domain:vIPR-ATM:vIPR-ATM-service-instance
constraints:
- pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
vipr_atm_ha_two_security_groups:
hidden: false
immutable: false
type: list
description: List of the security group to apply to the vIPR-ATM firewall ha1 port
default:
- 29e29a4a-b45d-42c2-ac14-b12a70036ae6
entry_schema:
type: string
vipr_atm_ha_one_security_groups:
hidden: false
immutable: false
type: list
description: List of the security group to apply to the vIPR-ATM firewall ha0 port
default:
- cbf8049e-69e8-48c3-a06f-255634391403
entry_schema:
type: string
node_templates:
vIPR_ATM_OAM_SG:
type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
properties:
name:
str_replace:
template: VNF_NAME_VIPR_ATM_OAM_SG
params:
VNF_NAME:
get_input: vnf_name
rules:
- protocol: tcp
remote_ip_prefix: 0.0.0.0/0
port_range_max: 22
port_range_min: 22
- protocol: tcp
remote_ip_prefix: 0.0.0.0/0
port_range_max: 443
port_range_min: 443
- protocol: tcp
remote_ip_prefix: 0.0.0.0/0
port_range_max: 3978
port_range_min: 3978
- protocol: icmp
remote_ip_prefix: 0.0.0.0/0
vIPR_ATM_Left_RVMI:
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: vipr_atm_service_left_fqdn
virtual_machine_interface_properties:
service_interface_type: left
port_tuple_refs:
- UNSUPPORTED_RESOURCE_vIPR_ATM_RPT
requirements:
- link:
capability: tosca.capabilities.network.Linkable
node: vIPR_ATM_Service_Left
relationship: tosca.relationships.network.LinksTo
- binding:
capability: tosca.capabilities.network.Bindable
node: vIPR_ATM_Firewall
relationship: tosca.relationships.network.BindsTo
vIPR_ATM_Service_Right:
type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
properties:
network_ipam_refs_data:
- network_ipam_refs_data_ipam_subnets:
- network_ipam_refs_data_ipam_subnets_subnet:
network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
get_input: vipr_atm_service_right_ip_prefix_len
network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
get_input: vipr_atm_service_right_ip_prefix
network_name:
str_replace:
template: VNF_NAME_VIPR_ATM_SERVICE_RIGHT_NETWORK
params:
VNF_NAME:
get_input: vnf_name
network_ipam_refs:
- default-domain:default-project:default-network-ipam
vIPR_ATM_Ha_Two:
type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
properties:
dhcp_enabled: false
network_name:
str_replace:
template: VNF_NAME_VIPR_ATM_HA_TWO_NETWORK
params:
VNF_NAME:
get_input: vnf_name
subnets:
vIPR_ATM_Ha_Two_Subnet:
enable_dhcp: false
name:
str_replace:
template: NET_NAME_SUBNET
params:
NET_NAME:
get_attribute:
- vIPR_ATM_Ha_Two
- network_name
cidr:
get_input: vipr_atm_ha_two_cidr
requirements:
- dependency:
capability: tosca.capabilities.Node
node: vIPR_ATM_Ha_Two
relationship: tosca.relationships.DependsOn
vIPR_ATM_HA_TWO_SG:
type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
properties:
name:
str_replace:
template: VNF_NAME_VIPR_ATM_HA_TWO_SG
params:
VNF_NAME:
get_input: vnf_name
rules:
- remote_mode: remote_group_id
vIPR_ATM_HA_ONE_SG:
type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
properties:
name:
str_replace:
template: VNF_NAME_VIPR_ATM_HA_ONE_SG
params:
VNF_NAME:
get_input: vnf_name
rules:
- remote_mode: remote_group_id
vIPR_ATM_Ha_One:
type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
properties:
dhcp_enabled: false
network_name:
str_replace:
template: VNF_NAME_VIPR_ATM_HA_ONE_NETWORK
params:
VNF_NAME:
get_input: vnf_name
subnets:
vIPR_ATM_Ha_One_Subnet:
enable_dhcp: false
name:
str_replace:
template: NET_NAME_SUBNET
params:
NET_NAME:
get_attribute:
- vIPR_ATM_Ha_One
- network_name
cidr:
get_input: vipr_atm_ha_one_cidr
requirements:
- dependency:
capability: tosca.capabilities.Node
node: vIPR_ATM_Ha_One
relationship: tosca.relationships.DependsOn
vIPR_ATM_OAM_0_Port:
type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
properties:
ip_requirements:
- ip_version: 4
ip_count_required:
is_required: false
floating_ip_count_required:
is_required: false
security_groups:
get_input: vipr_atm_oam_net_security_groups
mac_requirements:
mac_count_required:
is_required: false
name:
str_replace:
template: VM_NAME_PORT_0
params:
VM_NAME:
get_input: vipr_atm_name_0
network_role_tag: oam
network:
get_input: oam_net_id
requirements:
- binding:
capability: tosca.capabilities.network.Bindable
node: vIPR_ATM_Firewall
relationship: tosca.relationships.network.BindsTo
vIPR_ATM_Service_Left:
type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
properties:
network_ipam_refs_data:
- network_ipam_refs_data_ipam_subnets:
- network_ipam_refs_data_ipam_subnets_subnet:
network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
get_input: vipr_atm_service_left_ip_prefix_len
network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
get_input: vipr_atm_service_left_ip_prefix
network_name:
str_replace:
template: VNF_NAME_VIPR_ATM_SERVICE_LEFT_NETWORK
params:
VNF_NAME:
get_input: vnf_name
network_ipam_refs:
- default-domain:default-project:default-network-ipam
vIPR_ATM_Right_RVMI:
type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
properties:
name:
str_replace:
template: VM_NAME_PORT_4
params:
VM_NAME:
get_input: vipr_atm_name_0
virtual_network_refs:
- get_input: vipr_atm_service_right_fqdn
virtual_machine_interface_properties:
service_interface_type: right
port_tuple_refs:
- UNSUPPORTED_RESOURCE_vIPR_ATM_RPT
requirements:
- link:
capability: tosca.capabilities.network.Linkable
node: vIPR_ATM_Service_Right
relationship: tosca.relationships.network.LinksTo
- binding:
capability: tosca.capabilities.network.Bindable
node: vIPR_ATM_Firewall
relationship: tosca.relationships.network.BindsTo
vIPR_ATM_Ha_Two_0_Port:
type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
properties:
ip_requirements:
- ip_version: 4
ip_count_required:
is_required: true
floating_ip_count_required:
is_required: false
security_groups:
get_input: vipr_atm_ha_two_security_groups
fixed_ips:
- ip_address:
get_input: vipr_atm_ha_two_ip_0
mac_requirements:
mac_count_required:
is_required: false
name:
str_replace:
template: VM_NAME_PORT_2
params:
VM_NAME:
get_input: vipr_atm_name_0
network:
get_input: vipr_atm_ha_two_id
requirements:
- link:
capability: tosca.capabilities.network.Linkable
node: vIPR_ATM_Ha_Two
relationship: tosca.relationships.network.LinksTo
- binding:
capability: tosca.capabilities.network.Bindable
node: vIPR_ATM_Firewall
relationship: tosca.relationships.network.BindsTo
vIPR_ATM_Firewall:
type: org.openecomp.resource.vfc.nodes.heat.vipr_atm
properties:
flavor:
get_input: vipr_atm_flavor_name
availability_zone:
get_input: availability_zone_0
image:
get_input: vipr_atm_image_name
metadata:
vf_module_id:
get_input: vf_module_id
vnf_id:
get_input: vnf_id
vnf_name:
get_input: vnf_name
contrail_service_instance_ind: true
name:
get_input: vipr_atm_name_0
scheduler_hints:
group:
get_input: vipr_atm_server_group
vIPR_ATM_Ha_One_0_Port:
type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
properties:
ip_requirements:
- ip_version: 4
ip_count_required:
is_required: true
floating_ip_count_required:
is_required: false
security_groups:
get_input: vipr_atm_ha_one_security_groups
fixed_ips:
- ip_address:
get_input: vipr_atm_ha_one_ip_0
mac_requirements:
mac_count_required:
is_required: false
name:
str_replace:
template: VM_NAME_PORT_1
params:
VM_NAME:
get_input: vipr_atm_name_0
network:
get_input: vipr_atm_ha_one_id
requirements:
- link:
capability: tosca.capabilities.network.Linkable
node: vIPR_ATM_Ha_One
relationship: tosca.relationships.network.LinksTo
- binding:
capability: tosca.capabilities.network.Bindable
node: vIPR_ATM_Firewall
relationship: tosca.relationships.network.BindsTo
groups:
vIPR_ATM_Server_Group_group:
type: tosca.groups.Root
members:
- vIPR_ATM_Firewall
vIPR-ATM-Base_group:
type: org.openecomp.groups.heat.HeatStack
properties:
heat_file: ../Artifacts/vIPR-ATM-Base.yaml
description: "HOT template to create the vIPR-ATM firwall service template\
\ and instance. This template creates the following - Two service virtual\
\ networks for each side (left and right) of the vIPR-ATM firewalls - Two\
\ virtual networks for high availability between the vIPR-ATM firewalls\
\ - A Contrail Service Template for the vIPR-ATM service - A Contrail Service\
\ Instance for the vIPR-ATM service\nThe firewall virtual machines connected\
\ to these created networks and managed by the vIPR-ATM service instance\
\ will be created by the vIPR-ATM-Instance.yaml HOT template.\nNetwork Policy\
\ that includes the vIPR-ATM service instance will be created by client\
\ specific HOT templates or Contrail APIs. \n"
members:
- vIPR_ATM_Ha_One
- vIPR_ATM_OAM_SG
- vIPR_ATM_Service_Left
- vIPR_ATM_Service_Right
- vIPR_ATM_Ha_Two
- vIPR_ATM_HA_TWO_SG
- vIPR_ATM_HA_ONE_SG
vIPR_ATM_Valet_EG_0_group:
type: tosca.groups.Root
members:
- vIPR_ATM_Firewall
vIPR-ATM-Instance_group:
type: org.openecomp.groups.heat.HeatStack
properties:
heat_file: ../Artifacts/vIPR-ATM-Instance.yaml
description: |
HOT template to create a vIPR-ATM firwall service instance. This template creates the following - Contrail Port Tuple for this firwall service instance - Virtual machine interfaces and IP addresses attached to the two service virtual networks. These virtual machine interfaces will be used by the vIPR firewall service instance - Neutron ports for OAM, HA0, and HA1 networks - OS::Nova::Server with the created virtual machine interface and ports. This is the firewall service instance virtual machine.
members:
- vIPR_ATM_Left_RVMI
- vIPR_ATM_OAM_0_Port
- vIPR_ATM_Right_RVMI
- vIPR_ATM_Ha_Two_0_Port
- vIPR_ATM_Firewall
- vIPR_ATM_Ha_One_0_Port
outputs:
vipr_atm_contrail_service_instance_fqdn:
description: The FQDN for the Contrail Service Instance that is needed to create tenant OAM network policy to service change through the vIPR-ATM firewall.
value:
list_join:
- ':'
- get_attr:
- vIPR_ATM_Service_Instance
- fq_name
policies:
vIPR_ATM_Valet_EG_0_policy:
type: org.openecomp.policies.placement.valet.Exclusivity
properties:
level: host
targets:
- vIPR_ATM_Valet_EG_0_group
vIPR_ATM_Server_Group_policy:
type: org.openecomp.policies.placement.Antilocate
properties:
name:
str_replace:
template: VNF_NAME_VIPR_ATM_SERVER_GROUP
params:
VNF_NAME:
get_input: vnf_name
container_type: host
targets:
- vIPR_ATM_Server_Group_group
|