blob: 1392c20834481af674d12722b90043d6b6f16043 [file] [log] [blame]
Andy Bavier444007e2017-10-24 06:02:36 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/slice.yaml
26 - custom_types/site.yaml
27 - custom_types/image.yaml
28 - custom_types/flavor.yaml
29 - custom_types/network.yaml
30 - custom_types/onosservice.yaml
31 - custom_types/networkslice.yaml
32 - custom_types/venbservice.yaml
33 - custom_types/venbserviceinstance.yaml
Andy Baviere5c60f72017-10-26 10:02:27 -070034 - custom_types/vspgwcservice.yaml
35 - custom_types/vspgwcvendor.yaml
36 - custom_types/vspgwctenant.yaml
37 - custom_types/vspgwuservice.yaml
38 - custom_types/vspgwuvendor.yaml
39 - custom_types/vspgwutenant.yaml
Andy Bavier444007e2017-10-24 06:02:36 -070040
41topology_template:
42 node_templates:
43
44# site, image, fully created in deployment.yaml
45 {{ site_name }}:
46 type: tosca.nodes.Site
47 properties:
48 must-exist: true
49 name: {{ site_name }}
50
51 m1.small:
52 type: tosca.nodes.Flavor
53 properties:
54 name: m1.small
55 must-exist: true
56 m1.large:
57 type: tosca.nodes.Flavor
58 properties:
59 name: m1.large
60 must-exist: true
61 m1.medium:
62 type: tosca.nodes.Flavor
63 properties:
64 name: m1.medium
65 must-exist: true
66 m1.xlarge:
67 type: tosca.nodes.Flavor
68 properties:
69 name: m1.xlarge
70 must-exist: true
71
72 trusty-server-multi-nic:
73 type: tosca.nodes.Image
74 properties:
75 name: trusty-server-multi-nic
76
77# management networks, fully created in management-net.yaml
78 management:
79 type: tosca.nodes.Network
80 properties:
81 must-exist: true
82 name: management
83
84{% if use_management_hosts %}
85 management_hosts:
86 type: tosca.nodes.Network
87 properties:
88 must-exist: true
89 name: management_hosts
90{% endif %}
91
92# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
93 s1u_network:
94 type: tosca.nodes.Network
95 properties:
96 must-exist: true
97 name: s1u_network
98# s11_network is for connectivity between VMs, fully created in s11-net.yaml
99 s11_network:
100 type: tosca.nodes.Network
101 properties:
102 must-exist: true
103 name: s11_network
104# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
105 nbi_network:
106 type: tosca.nodes.Network
107 properties:
108 must-exist: true
109 name: nbi_network
110# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
111 sbi_network:
112 type: tosca.nodes.Network
113 properties:
114 must-exist: true
115 name: sbi_network
116# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
117 sgi_network:
118 type: tosca.nodes.Network
119 properties:
120 must-exist: true
121 name: sgi_network
Andy Baviere5c60f72017-10-26 10:02:27 -0700122# spgw_network is for connectivity between VMs, fully created in sgi-net.yaml
123 spgw_network:
124 type: tosca.nodes.Network
125 properties:
126 must-exist: true
127 name: spgw_network
Andy Bavier444007e2017-10-24 06:02:36 -0700128
129# ONOS_CORD, fully created in vtn.yaml
130 service#ONOS_CORD:
131 type: tosca.nodes.ONOSService
132 properties:
133 must-exist: true
134 name: ONOS_CORD
135
136# ONOS_Fabric, fully created in fabric.yaml
137 service#ONOS_Fabric:
138 type: tosca.nodes.ONOSService
139 properties:
140 must-exist: true
141 name: ONOS_Fabric
142
Andy Baviere5c60f72017-10-26 10:02:27 -0700143# vENB Service
Andy Bavier444007e2017-10-24 06:02:36 -0700144 service#venb:
145 type: tosca.nodes.VENBService
146 properties:
147 name: venb
148 kind: vEPC
149 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
150 private_key_fn: /opt/xos/services/venb/keys/mcord_rsa
151 artifacts:
152 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
153
Andy Bavier444007e2017-10-24 06:02:36 -0700154 {{ site_name }}_venb:
155 description: vENB Service Slice
156 type: tosca.nodes.Slice
157 properties:
158 name: {{ site_name }}_venb
159 default_isolation: vm
160 network: noauto
161 requirements:
162 - site:
163 node: mysite
164 relationship: tosca.relationships.BelongsToOne
165 - service:
166 node: service#venb
167 relationship: tosca.relationships.BelongsToOne
168 - default_image:
169 node: trusty-server-multi-nic
170 relationship: tosca.relationships.BelongsToOne
171 - default_flavor:
172 node: m1.small
173 relationship: tosca.relationships.BelongsToOne
174
175 venb_instance1:
176 type: tosca.nodes.VENBServiceInstance
177 properties:
178 name: venb_instance1
179 requirements:
180 - owner:
181 node: service#venb
182 relationship: tosca.relationships.BelongsToOne
183
184 venb_slice_management_network:
185 type: tosca.nodes.NetworkSlice
186 requirements:
187 - network:
188 node: management
189 relationship: tosca.relationships.BelongsToOne
190 - slice:
191 node: {{ site_name }}_venb
192 relationship: tosca.relationships.BelongsToOne
193
194 venb_slice_s11_network:
195 type: tosca.nodes.NetworkSlice
196 requirements:
197 - network:
198 node: s11_network
199 relationship: tosca.relationships.BelongsToOne
200 - slice:
201 node: {{ site_name }}_venb
202 relationship: tosca.relationships.BelongsToOne
203
204 venb_slice_s1u_network:
205 type: tosca.nodes.NetworkSlice
206 requirements:
207 - network:
208 node: s1u_network
209 relationship: tosca.relationships.BelongsToOne
210 - slice:
211 node: {{ site_name }}_venb
212 relationship: tosca.relationships.BelongsToOne
213
214 venb_slice_sgi_network:
215 type: tosca.nodes.NetworkSlice
216 requirements:
217 - network:
218 node: sgi_network
219 relationship: tosca.relationships.BelongsToOne
220 - slice:
221 node: {{ site_name }}_venb
222 relationship: tosca.relationships.BelongsToOne
Andy Baviere5c60f72017-10-26 10:02:27 -0700223
224#vSPGWC Service
225 service#vspgwc:
226 type: tosca.nodes.VSPGWCService
227 properties:
228 name: vspgwc
229 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
230 private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa
231 artifacts:
232 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
233
234 {{ site_name }}_vspgwc:
235 description: SDN controller slice
236 type: tosca.nodes.Slice
237 properties:
238 name: {{ site_name }}_vspgwc
239 default_isolation: vm
240 network: noauto
241 requirements:
242 - site:
243 node: mysite
244 relationship: tosca.relationships.BelongsToOne
245 - service:
246 node: service#vspgwc
247 relationship: tosca.relationships.BelongsToOne
248 - default_image:
249 node: trusty-server-multi-nic
250 relationship: tosca.relationships.BelongsToOne
251 - default_flavor:
252 node: m1.small
253 relationship: tosca.relationships.BelongsToOne
254
255 intel_vspgwc:
256 type: tosca.nodes.VSPGWCVendor
257 properties:
258 name: intel_vspgwc
259 requirements:
260 - image:
261 node: trusty-server-multi-nic
262 relationship: tosca.relationships.BelongsToOne
263 - flavor:
264 node: m1.small
265 relationship: tosca.relationships.BelongsToOne
266
267 serviceinstance#vspgwc_instance:
268 type: tosca.nodes.VSPGWCTenant
269 properties:
270 name: vspgwc_instance1
271 requirements:
272 - vspgwc_vendor:
273 node: intel_vspgwc
274 relationship: tosca.relationships.BelongsToOne
275 - owner:
276 node: service#vspgwc
277 relationship: tosca.relationships.BelongsToOne
278
279 vspgwc_slice_management_network:
280 type: tosca.nodes.NetworkSlice
281 requirements:
282 - network:
283 node: management
284 relationship: tosca.relationships.BelongsToOne
285 - slice:
286 node: {{ site_name }}_vspgwc
287 relationship: tosca.relationships.BelongsToOne
288
289 vspgwc_slice_s11_network:
290 type: tosca.nodes.NetworkSlice
291 requirements:
292 - network:
293 node: s11_network
294 relationship: tosca.relationships.BelongsToOne
295 - slice:
296 node: {{ site_name }}_vspgwc
297 relationship: tosca.relationships.BelongsToOne
298
299 vspgwc_slice_spgw_network:
300 type: tosca.nodes.NetworkSlice
301 requirements:
302 - network:
303 node: spgw_network
304 relationship: tosca.relationships.BelongsToOne
305 - slice:
306 node: {{ site_name }}_vspgwc
307 relationship: tosca.relationships.BelongsToOne
308
309#vSPGWU Service
310 service#vspgwu:
311 type: tosca.nodes.VSPGWUService
312 properties:
313 name: vspgwu
314 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
315 private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa
316 artifacts:
317 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
318
319 {{ site_name }}_vspgwu:
320 description: SDN controller slice
321 type: tosca.nodes.Slice
322 properties:
323 name: {{ site_name }}_vspgwu
324 default_isolation: vm
325 network: noauto
326 requirements:
327 - site:
328 node: mysite
329 relationship: tosca.relationships.BelongsToOne
330 - service:
331 node: service#vspgwu
332 relationship: tosca.relationships.BelongsToOne
333 - default_image:
334 node: trusty-server-multi-nic
335 relationship: tosca.relationships.BelongsToOne
336 - default_flavor:
337 node: m1.small
338 relationship: tosca.relationships.BelongsToOne
339
340 intel_vspgwu:
341 type: tosca.nodes.VSPGWUVendor
342 properties:
343 name: intel_vspgwu
344 requirements:
345 - image:
346 node: trusty-server-multi-nic
347 relationship: tosca.relationships.BelongsToOne
348 - flavor:
349 node: m1.small
350 relationship: tosca.relationships.BelongsToOne
351
352 serviceinstance#vspgwu_instance:
353 type: tosca.nodes.VSPGWUTenant
354 properties:
355 name: vspgwu_instance1
356 requirements:
357 - vspgwu_vendor:
358 node: intel_vspgwu
359 relationship: tosca.relationships.BelongsToOne
360 - owner:
361 node: service#vspgwu
362 relationship: tosca.relationships.BelongsToOne
363
364 vspgwu_slice_management_network:
365 type: tosca.nodes.NetworkSlice
366 requirements:
367 - network:
368 node: management
369 relationship: tosca.relationships.BelongsToOne
370 - slice:
371 node: {{ site_name }}_vspgwu
372 relationship: tosca.relationships.BelongsToOne
373
374 vspgwu_slice_sgi_network:
375 type: tosca.nodes.NetworkSlice
376 requirements:
377 - network:
378 node: sgi_network
379 relationship: tosca.relationships.BelongsToOne
380 - slice:
381 node: {{ site_name }}_vspgwu
382 relationship: tosca.relationships.BelongsToOne
383
384 vspgwu_slice_spgw_network:
385 type: tosca.nodes.NetworkSlice
386 requirements:
387 - network:
388 node: spgw_network
389 relationship: tosca.relationships.BelongsToOne
390 - slice:
391 node: {{ site_name }}_vspgwu
392 relationship: tosca.relationships.BelongsToOne
393
394 vspgwu_slice_s1u_network:
395 type: tosca.nodes.NetworkSlice
396 requirements:
397 - network:
398 node: s1u_network
399 relationship: tosca.relationships.BelongsToOne
400 - slice:
401 node: {{ site_name }}_vspgwu
402 relationship: tosca.relationships.BelongsToOne