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
|
tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- aria-1.0
- https://gerrit.onap.org/r/gitweb?p=so.git;a=blob_plain;f=aria/multivim-plugin/src/main/python/multivim-plugin/plugin.yaml
topology_template:
description: TOSCA template to deploy vCPE Infrastructue emlements (vAAA, vDHCP, vDNS_DHCP, webServer_sink) for ONAP
inputs:
multivim_config:
type: onap.multivim.datatypes.Config
description: MultiVIM connection configuration
vcpe_image_name:
type: string
description: Image to be used for compute instance
vcpe_flavor_name:
type: string
description: Type of instance (flavor) to be used
public_net_id:
type: string
description: Public network that enables remote connection to VNF
onap_private_net_id:
type: string
description: Private network that connects ONAP components and the VNF
onap_private_subnet_id:
type: string
description: Private sub-network that connects ONAP components and the VNF
onap_private_net_cidr:
type: string
description: The CIDR of the protected private network
cpe_signal_net_id:
type: string
description: Private network that connects vAAA with vDNSs
cpe_signal_net_cidr:
type: string
description: The CIDR of the vAAA private network
cpe_public_net_id:
type: string
description: Private network that connects vGW to emulated internet
cpe_public_net_cidr:
type: string
description: The CIDR of the vCPE public
vaaa_private_ip_0:
type: string
description: Private IP address that is assigned to the vAAA to communicate with the vCPE components
vaaa_private_ip_1:
type: string
description: Private IP address that is assigned to the vAAA to communicate with ONAP components
vdns_private_ip_0:
type: string
description: Private IP address that is assigned to the vDNS to communicate with the vCPE components
vdns_private_ip_1:
type: string
description: Private IP address that is assigned to the vDNS to communicate with ONAP components
vdhcp_private_ip_0:
type: string
description: Private IP address that is assigned to the vDHCP to communicate with the vCPE components
vdhcp_private_ip_1:
type: string
description: Private IP address that is assigned to the vDHCP to communicate with ONAP components
vweb_private_ip_0:
type: string
description: Private IP address that is assigned to the vWEB to communicate with the vGWs
vweb_private_ip_1:
type: string
description: Private IP address that is assigned to the vWEB to communicate with ONAP components
vaaa_name_0:
type: string
description: Name of the vAAA
vdns_name_0:
type: string
description: Name of the vDNS
vdhcp_name_0:
type: string
description: Name of the vDHCP
vweb_name_0:
type: string
description: Name of the vWEB
vnf_id:
type: string
description: The VNF ID is provided by ONAP
vf_module_id:
type: string
description: The vAAA Module ID is provided by ONAP
dcae_collector_ip:
type: string
description: IP address of the DCAE collector
dcae_collector_port:
type: string
description: Port of the DCAE collector
key_name:
type: string
description: Public/Private key pair name
pub_key:
type: string
description: Public key to be installed on the compute instance
repo_url_blob:
type: string
description: URL of the repository that hosts the demo packages
repo_url_artifacts:
type: string
description: URL of the repository that hosts the demo packages
install_script_version:
type: string
description: Version number of the scripts that install the vFW demo app
demo_artifacts_version:
type: string
description: Artifacts (jar, tar.gz) version used in demo vnfs
cloud_env:
type: string
##################
# #
# NODE TEMPLATES #
# #
##################
node_templates:
my_keypair:
type: onap.multivim.nodes.KeyPair
properties:
resource_id: vcpe_kp
multivim_config:
custom_configuration:
public_key: { get_input: pub_key }
multivim_config: { get_input: multivim_config }
onap_private_network:
type: onap.multivim.nodes.Network
properties:
use_external_resource: true
resource_id: { get_input: onap_private_net_id }
multivim_config: { get_input: multivim_config }
onap_private_subnet:
type: onap.multivim.nodes.Subnet
properties:
use_external_resource: true
resource_id: { get_input: onap_private_subnet_id }
multivim_config: { get_input: multivim_config }
cpe_signal_network:
type: onap.multivim.nodes.Network
properties:
resource_id: { get_input: cpe_signal_net_id }
multivim_config: { get_input: multivim_config }
cpe_signal_subnet:
type: onap.multivim.nodes.Subnet
properties:
resource_id: { get_input: cpe_signal_net_id }
subnet:
cidr: { get_input: cpe_signal_net_cidr }
multivim_config: { get_input: multivim_config }
requirements:
- network: cpe_signal_network
cpe_public_network:
type: onap.multivim.nodes.Network
properties:
resource_id: { get_input: cpe_public_net_id }
multivim_config: { get_input: multivim_config }
cpe_public_subnet:
type: onap.multivim.nodes.Subnet
properties:
resource_id: { get_input: cpe_public_net_id }
subnet:
cidr: { get_input: cpe_public_net_cidr }
multivim_config: { get_input: multivim_config }
requirements:
- network: cpe_public_network
# Virtual AAA server Instantiation
vaaa_private_0_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vaaa_private_ip_0 }
multivim_config: { get_input: multivim_config }
requirements:
- network: cpe_signal_network
- subnet: cpe_signal_subnet
vaaa_private_1_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vaaa_private_ip_1 }
multivim_config: { get_input: multivim_config }
requirements:
- network: onap_private_network
- subnet: onap_private_subnet
# NOTE: may need management_network_name
vaaa_0:
type: onap.multivim.nodes.Server
properties:
image: { get_input: vcpe_image_name }
flavor: { get_input: vcpe_flavor_name }
resource_id: { get_input: vaaa_name_0 }
management_network_name: onap_private_network
multivim_config: { get_input: multivim_config }
server:
metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
userdata: { concat: [
"#!/bin/bash\n",
"mkdir /opt/config\n",
"echo ",{ get_input: dcae_collector_ip}," > /opt/config/dcae_collector_ip.txt\n",
"echo ",{ get_input: dcae_collector_port}," > /opt/config/dcae_collector_port.txt\n",
"echo ",{ get_input: vaaa_private_ip_0}," > /opt/config/cpe_signal_net_ipaddr.txt\n",
"echo ",{ get_input: vaaa_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
"echo ",{ get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
"echo ",{ get_input: cpe_signal_net_cidr}," > /opt/config/cpe_signal_net_cidr.txt\n",
"echo ",{ get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
"echo ",{ get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
"echo ",{ get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
"echo ",{ get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
"echo ",{ get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
"curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_aaa_install.sh -o /opt/v_aaa_install.sh\n",
"cd /opt\n",
"chmod +x v_aaa_install.sh\n",
"./v_aaa_install.sh\n"
]
}
requirements:
- key_pair: my_keypair
- port: vaaa_private_0_port
- port: vaaa_private_1_port
# Virtual DNS Instantiation
vdns_private_0_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vdns_private_ip_0 }
multivim_config: { get_input: multivim_config }
requirements:
- network: cpe_public_network
vdns_private_1_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vdns_private_ip_1 }
multivim_config: { get_input: multivim_config }
requirements:
- network: onap_private_network
vdns_0:
type: onap.multivim.nodes.Server
properties:
image: { get_input: vcpe_image_name }
flavor: { get_input: vcpe_flavor_name }
resource_id: { get_input: vdns_name_0 }
management_network_name: onap_private_network
multivim_config: { get_input: multivim_config }
server:
metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
userdata: { concat: [
"#!/bin/bash\n",
"mkdir /opt/config\n",
"echo ",{get_input: vdns_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
"echo ",{get_input: vdns_private_ip_0}," > /opt/config/cpe_public_net_ipaddr.txt\n",
"echo ",{get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
"echo ",{get_input: cpe_public_net_cidr}," > /opt/config/cpe_public_net_cidr.txt\n",
"echo ",{get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
"echo ",{get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
"echo ",{get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
"echo ",{get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
"echo ",{get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
"curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_dns_install.sh -o /opt/v_dns_install.sh\n",
"cd /opt\n",
"chmod +x v_dns_install.sh\n",
"./v_dns_install.sh\n"
]
}
requirements:
- port: vdns_private_0_port
- port: vdns_private_1_port
# Virtual DHCP Instantiation
vdhcp_private_0_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vdhcp_private_ip_0 }
multivim_config: { get_input: multivim_config }
requirements:
- network: cpe_signal_network
- subnet: cpe_signal_subnet
vdhcp_private_1_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vdhcp_private_ip_1 }
multivim_config: { get_input: multivim_config }
requirements:
- subnet: onap_private_subnet
vdhcp_0:
type: onap.multivim.nodes.Server
properties:
image: { get_input: vcpe_image_name }
flavor: { get_input: vcpe_flavor_name }
resource_id: { get_input: vdhcp_name_0 }
management_network_name: onap_private_network
multivim_config: { get_input: multivim_config }
server:
metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
userdata: { concat: [
"#!/bin/bash\n",
"mkdir /opt/config\n",
"echo ",{get_input: vdns_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
"echo ",{get_input: vdhcp_private_ip_0}," > /opt/config/cpe_signal_ipaddr.txt\n",
"echo ",{get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
"echo ",{get_input: cpe_signal_net_cidr}," > /opt/config/cpe_signal_net_cidr.txt\n",
"echo ",{get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
"echo ",{get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
"echo ",{get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
"echo ",{get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
"echo ",{get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
"curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_dhcp_install.sh -o /opt/v_dhcp_install.sh\n",
"cd /opt\n",
"chmod +x v_dhcp_install.sh\n",
"./v_dhcp_install.sh\n"
]
}
requirements:
- key_pair: my_keypair
- port: vdhcp_private_0_port
- port: vdhcp_private_1_port
# vWEB instantiaion
vweb_private_0_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vweb_private_ip_0 }
multivim_config: { get_input: multivim_config }
requirements:
- network: cpe_public_network
- subnet: cpe_public_subnet
vweb_private_1_port:
type: onap.multivim.nodes.Port
properties:
fixed_ip: { get_input: vweb_private_ip_1 }
multivim_config: { get_input: multivim_config }
requirements:
- network: onap_private_network
- subnet: onap_private_subnet
vweb_0:
type: onap.multivim.nodes.Server
properties:
image: { get_input: vcpe_image_name }
flavor: { get_input: vcpe_flavor_name }
resource_id: { get_input: vweb_name_0 }
management_network_name: onap_private_network
multivim_config: { get_input: multivim_config }
server:
metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
userdata: { concat: [
"#!/bin/bash\n",
"mkdir /opt/config\n",
"echo ",{get_input: vweb_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
"echo ",{get_input: vweb_private_ip_0}," > /opt/config/cpe_public_ipaddr.txt\n",
"echo ",{get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
"echo ",{get_input: cpe_public_net_cidr}," > /opt/config/cpe_public_net_cidr.txt\n",
"echo ",{get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
"echo ",{get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
"echo ",{get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
"echo ",{get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
"echo ",{get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
"curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_web_install.sh -o /opt/v_web_install.sh\n",
"cd /opt\n",
"chmod +x v_web_install.sh\n",
"./v_web_install.sh\n"
]
}
requirements:
- key_pair: my_keypair
- port: vweb_private_0_port
- port: vweb_private_1_port
|