aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityRulesToPortGetResource/inputfiles/FEAdd_On_Module_vLBTemplate.yaml
blob: afc435adaf1088cddc5b7f3e9c5f86fd53bb0790 (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
heat_template_version: 2014-10-16

parameters:
  domain_name:
    type: string
  vlb_image_name:
    type: string
  manager_name_0:
    type: string
  manager_oam_direct_ip_0:
    type: string
  ntp_timezone:
    type: string
  oam_private_net_name:
    type: string
  packet_internal_network:
    type: string
  packet_mirror_network:
    type: string
  region_name:
    type: string
  rpmrepository_ip_0:
    type: string
  security_group:
    type: string
  tenant_name:
    type: string
  availability_zone_0:
    type: string
  vLB_cluster_name:
    type: string
  vLB_flavor_name:
    type: string
  vLB_index:
    type: number
  vLB_names:
    type: comma_delimited_list
  vLB_node_count:
    type: number
  vLB_type:
    type: string
  vLB_version_name:
    type: string
  vLB_volume_name_0:
    type: string
  vLB_volume_name_1:
    type: string
  vLB_volume_name_2:
    type: string
  vLB_volume_size_0:
    type: number
  vLB_volume_size_1:
    type: number
  vLB_volume_size_2:
    type: number
  vLB_volume_type_0:
    type: string
  vLB_volume_type_1:
    type: string
  vLB_volume_type_2:
    type: string
  vProbe_cluster_name:
    type: string
  vf_module_id:
    type: string
  vf_module_name:
    type: string
  vnf_id:
    type: string
resources:
  oam_private_net_network_port:
    properties:
      network:
        get_param: oam_private_net_name
      security_groups:
      - get_param: security_group
    type: OS::Neutron::Port
  packet_internal_network_port:
    properties:
      network:
        get_param: packet_internal_network
      security_groups:
      - get_param: security_group
    type: OS::Neutron::Port
  packet_mirror_network_port:
    properties:
      network:
        get_param: packet_mirror_network
      security_groups:
      - get_param: security_group
    type: OS::Neutron::Port
  vLBInstance:
    properties:
      availability_zone:
        get_param: availability_zone_0
      config_drive: true
      flavor:
        get_param: vLB_flavor_name
      image:
        get_param: vlb_image_name
      metadata:
        DPDK: DPDK_IP
        cluster_name:
          get_param: vLB_cluster_name
        machine_name:
          get_param:
          - vLB_names
          - get_param: vLB_index
        machine_type: vLB
        manager_oam_direct_ip_0:
          get_param: manager_oam_direct_ip_0
        mount_colon__slash_config:
          get_resource: vLB_volume_2
        mount_colon__slash_data:
          get_resource: vLB_volume_0
        mount_colon__slash_log:
          get_resource: vLB_volume_1
        ntp_timezone:
          get_param: ntp_timezone
        oam_private_network_cidr:
          get_attr:
          - oam_private_net_network_port
          - subnets
          - 0
          - cidr
        oam_private_network_ip_0:
          get_attr:
          - oam_private_net_network_port
          - fixed_ip_0s
          - 0
          - ip_address
        packet_internal_network_cidr:
          get_attr:
          - packet_internal_network_port
          - subnets
          - 0
          - cidr
        packet_internal_network_ip_0:
          get_attr:
          - packet_internal_network_port
          - fixed_ip_0s
          - 0
          - ip_address
        packet_mirror_network_cidr:
          get_attr:
          - packet_mirror_network_port
          - subnets
          - 0
          - cidr
        packet_mirror_network_ip_0:
          get_attr:
          - packet_mirror_network_port
          - fixed_ip_0s
          - 0
          - ip_address
        region:
          get_param: region_name
        repo_ip_0:
          get_param: rpmrepository_ip_0
        tenant:
          get_param: tenant_name
        vLBAgentInstance:
          get_param: vLB_index
        vLBAgent_id:
          get_attr:
          - vLB_id
          - value
        vLBAgent_name:
          get_param:
          - vLB_names
          - get_param: vLB_index
        vLBAgent_type:
          get_param: vLB_type
        vLBAgent_version_name:
          get_param: vLB_version_name
        version_number:
          get_param: vLB_version_name
        vf_module_id:
          get_param: vf_module_id
        vf_module_name:
          get_param: vf_module_name
        vnf_id:
          get_param: vnf_id
      name:
        get_param:
        - vLB_names
        - get_param: vLB_index
      networks:
      - port:
          get_resource: oam_private_net_network_port
      - port:
          get_resource: packet_mirror_network_port
      - port:
          get_resource: packet_internal_network_port
      personality:
        /root/CheckAvailability/check_availability.py:
          get_file: check_availability.py
        /root/RegisterStatus/register_status.py:
          get_file: register_status.py
        /root/call_home.py:
          get_file: call_home.py
        /root/dependencies.json:
          get_file: vlbdependencies.json
        /tmp/wait_for_resources.py:
          get_file: wait_for_resources.py
      user_data:
        str_replace:
          params:
            '%domain_name%':
              get_param: domain_name
            '%manager_hostname%':
              get_param: manager_name_0
            '%manager_oam_direct_ip_0%':
              get_param: manager_oam_direct_ip_0
            '%rpm_repo_ip_0%':
              get_param: rpmrepository_ip_0
            '%vLBInstance%':
              get_param: vLB_index
            '%vLB_cluster_name%':
              get_param: vLB_cluster_name
            '%vLB_config%':
              get_resource: vLB_volume_2
            '%vLB_data%':
              get_resource: vLB_volume_0
            '%vLB_id_number%':
              get_attr:
              - vLB_id
              - value
            '%vLB_log%':
              get_resource: vLB_volume_1
            '%vLB_node_count%':
              get_param: vLB_node_count
            '%vLB_version_name%':
              get_param: vLB_version_name
            '%vProbe_cluster_name%':
              get_param: vProbe_cluster_name
          template:
            get_file: FEAdd_On_Module_vLBCloudConfig
      user_data_format: RAW
    type: OS::Nova::Server
  vLB_id:
    properties:
      length: 4
      sequence: digits
    type: OS::Heat::RandomString
  vLB_volume_0:
    properties:
      size:
        get_param: vLB_volume_size_0
      volume_type:
        get_param: vLB_volume_type_0
    type: OS::Cinder::Volume
  vLB_volume_0_att:
    properties:
      instance_uuid:
        get_resource: vLBInstance
      volume_id:
        get_resource: vLB_volume_0
    type: OS::Cinder::VolumeAttachment
  vLB_volume_1:
    properties:
      size:
        get_param: vLB_volume_size_1
      volume_type:
        get_param: vLB_volume_type_1
    type: OS::Cinder::Volume
  vLB_volume_1_att:
    properties:
      instance_uuid:
        get_resource: vLBInstance
      volume_id:
        get_resource: vLB_volume_1
    type: OS::Cinder::VolumeAttachment
  vLB_volume_2:
    properties:
      size:
        get_param: vLB_volume_size_2
      volume_type:
        get_param: vLB_volume_type_2
    type: OS::Cinder::Volume
  vLB_volume_2_att:
    properties:
      instance_uuid:
        get_resource: vLBInstance
      volume_id:
        get_resource: vLB_volume_2
    type: OS::Cinder::VolumeAttachment