blob: def2ed9ddc3fa063e8478059ea14b50c110e21ec [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup MCORD-related services.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9
10 tosca.nodes.MCORDService:
11 derived_from: tosca.nodes.Root
12 description: >
13 An XOS Service object. Services may be listed in the Service
14 directory and may be linked together via Tenancy Relationships.
15 capabilities:
16 scalable:
17 type: tosca.capabilities.Scalable
18 service:
19 type: tosca.capabilities.xos.Service
20 properties:
21 no-delete:
22 type: boolean
23 default: false
24 description: Do not allow Tosca to delete this object
25 no-create:
26 type: boolean
27 default: false
28 description: Do not allow Tosca to create this object
29 no-update:
30 type: boolean
31 default: false
32 description: Do not allow Tosca to update this object
33 kind:
34 type: string
35 default: RAN
36 description: Type of service.
37 view_url:
38 type: string
39 required: false
40 description: URL to follow when icon is clicked in the Service Directory.
41 icon_url:
42 type: string
43 required: false
44 description: ICON to display in the Service Directory.
45 enabled:
46 type: boolean
47 default: true
48 published:
49 type: boolean
50 default: true
51 description: If True then display this Service in the Service Directory.
52 public_key:
53 type: string
54 required: false
55 description: Public key to install into Instances to allows Services to SSH into them.
56 private_key_fn:
57 type: string
58 required: false
59 description: Location of private key file
60 versionNumber:
61 type: string
62 required: false
63 description: Version number of Service.
64
Saleil Bhat9462d932017-01-20 20:09:06 -080065 #VMME service node type; should probably be switched with generic MCORDservice node
66 tosca.nodes.VMMEService:
67 derived_from: tosca.nodes.Root
68 description: >
69 An XOS Service object. Services may be listed in the Service
70 directory and may be linked together via Tenancy Relationships.
71 capabilities:
72 scalable:
73 type: tosca.capabilities.Scalable
74 service:
75 type: tosca.capabilities.xos.Service
76 properties:
77 no-delete:
78 type: boolean
79 default: false
80 description: Do not allow Tosca to delete this object
81 no-create:
82 type: boolean
83 default: false
84 description: Do not allow Tosca to create this object
85 no-update:
86 type: boolean
87 default: false
88 description: Do not allow Tosca to update this object
89 kind:
90 type: string
91 default: RAN
92 description: Type of service.
93 view_url:
94 type: string
95 required: false
96 description: URL to follow when icon is clicked in the Service Directory.
97 icon_url:
98 type: string
99 required: false
100 description: ICON to display in the Service Directory.
101 enabled:
102 type: boolean
103 default: true
104 published:
105 type: boolean
106 default: true
107 description: If True then display this Service in the Service Directory.
108 public_key:
109 type: string
110 required: false
111 description: Public key to install into Instances to allows Services to SSH into them.
112 private_key_fn:
113 type: string
114 required: false
115 description: Location of private key file
116 versionNumber:
117 type: string
118 required: false
119 description: Version number of Service.
120
Saleil Bhat9462d932017-01-20 20:09:06 -0800121 tosca.nodes.VMMETenant:
122 derived_from: tosca.nodes.Root
123 description: >
124 A Tenant of the VMME Service
125 properties:
126 kind:
127 type: string
128 default: vEPC
129 description: Kind of tenant
130 service_specific_id:
131 type: string
132 required: false
133 description: Service specific ID opaque to XOS but meaningful to service
134 s1mme_tag:
135 type: string
136 required: false
137 default: 600 #chosen at random
138 description: VTN stag port-name
139 tenant_message:
140 type: string
141 required: false
142 default: New vMME Tenant
143 description: Just a message
Saleil Bhata9f32372017-01-23 18:48:49 -0800144 image_name:
145 type: string
146 required: true
147 default: default
148 description: Name of VM image
Saleil Bhat9462d932017-01-20 20:09:06 -0800149
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000150 tosca.nodes.VBBUComponent:
151 derived_from: tosca.nodes.Root
152 description: >
153 CORD: vBBU Component of MCORD Service.
154 properties:
155 kind:
156 type: string
157 default: RAN
158 description: Kind of component
159 s1u_tag:
160 type: string
161 required: false
162 default: 901
163 description: VTN stag port-name
164 s1mme_tag:
165 type: string
166 required: false
167 default: 900
168 description: VTN stag port-name
169 rru_tag:
170 type: string
171 required: false
172 default: 999
173 description: VTN stag port-name
174 display_message:
175 type: string
176 required: false
177 default: New vBBU Component
178 description: Just a message
179
180 tosca.nodes.VPGWCComponent:
181 derived_from: tosca.nodes.Root
182 description: >
183 CORD: vPGWC Component of MCORD Service.
184 properties:
185 kind:
186 type: string
187 default: VPGWC_KIND
188 description: Kind of component
189 s5s8_pgw_tag:
190 type: string
191 required: false
192 default: 300
193 description: VTN stag port-name
194 display_message:
195 type: string
196 required: false
197 default: New vPGWc Component
198 description: Just a message
199
JianHao8fa69232017-01-18 03:05:01 +0000200 tosca.nodes.VSGWTenant:
201 derived_from: tosca.nodes.Root
202 description: >
203 A Tenant of the VSGW Service
204 properties:
205 kind:
206 type: string
207 default: generic
208 description: Kind of tenant
209 service_specific_id:
210 type: string
211 required: false
212 description: Service specific ID opaque to XOS but meaningful to service
213 tenant_message:
214 type: string
215 required: false
216 default: New vSGW Tenant
217 description: Just a message
218
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000219topology_template:
220 node_templates:
221 vBBU:
222 type: tosca.nodes.MCORDService
223 requirements:
224 properties:
225 kind: RAN
226 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700227 view_url: /admin/vbbu/vbbucomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000228 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000229 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000230 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000231 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000232
233 vPGWC:
234 type: tosca.nodes.MCORDService
235 requirements:
236 properties:
237 kind: vEPC
238 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700239 view_url: /admin/vpgwc/vpgwccomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000240 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lin97c12612016-09-19 23:40:53 +0000241 private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000242 artifacts:
Pingping Lin97c12612016-09-19 23:40:53 +0000243 pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000244
JianHao8fa69232017-01-18 03:05:01 +0000245 vSGW:
246 type: tosca.nodes.MCORDService
247 requirements:
248 properties:
249 kind: vEPC
250 icon_url: /static/mCordServices/service_server.png
251 view_url: /admin/vsgw/vsgwtenant
252 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
253 private_key_fn: /opt/xos/services/vsgw/keys/vSGW_rsa
254 artifacts:
255 pubkey: /opt/xos/services/vsgw/keys/vSGW_rsa.pub
256
Saleil Bhata9f32372017-01-23 18:48:49 -0800257 vMME:
258 type: tosca.nodes.VMMEService
259 requirements:
260 - management:
261 node: management
262 relationship: tosca.relationships.UsesNetwork
263 properties:
264 kind: vEPC
265 icon_url: /static/mCordServices/service_server.png
266 view_url: /admin/vmme/vmmetenant
267 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
268 private_key_fn: /opt/xos/services/vmme/keys/vMME_rsa
269 artifacts:
270 pubkey: /opt/xos/services/vmme/keys/vMME_rsa.pub
271
272
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000273 m1.xlarge:
274 type: tosca.nodes.Flavor
275
276 Private:
277 type: tosca.nodes.NetworkTemplate
278
279 External:
280 type: tosca.nodes.NetworkTemplate
281
282 management_template:
283 type: tosca.nodes.NetworkTemplate
284 properties:
285 visibility: private
286 translation: none
287
288 management:
289 type: tosca.nodes.network.Network.XOS
290# properties:
291# no-create: true
292# no-delete: true
293# no-update: true
294
295 lan_3gpp_s1mme_network:
296 type: tosca.nodes.network.Network.XOS
297 properties:
298 ip_version: 4
299 labels: lan_3gpp_s1uc_net
300 cidr: 172.16.1.0/24
301 start_ip: 172.16.1.3
302 end_ip: 172.16.1.12
303 gateway_ip: 172.16.1.1
304 requirements:
305 - network_template:
306 node: External
307 relationship: tosca.relationships.UsesNetworkTemplate
308 - owner:
309 node: mysite_mobile_net
310 relationship: tosca.relationships.MemberOfSlice
311 - connection:
312 node: mysite_vbbu_slice1
313 relationship: tosca.relationships.ConnectsToSlice
314
315 lan_3gpp_s1u_network:
316 type: tosca.nodes.network.Network.XOS
317 properties:
318 ip_version: 4
319 labels: lan_3gpp_s1u_net
320 cidr: 172.16.2.0/24
321 start_ip: 172.16.2.3
322 end_ip: 172.16.2.12
323 gateway_ip: 172.16.16.1
324 requirements:
325 - network_template:
326 node: External
327 relationship: tosca.relationships.UsesNetworkTemplate
328 - owner:
329 node: mysite_mobile_net
330 relationship: tosca.relationships.MemberOfSlice
331 - connection:
332 node: mysite_vbbu_slice1
333 relationship: tosca.relationships.ConnectsToSlice
334
335 lan_rru_network:
336 type: tosca.nodes.network.Network.XOS
337 properties:
338 ip_version: 4
339 labels: lan_rru_net
340 cidr: 172.16.0.0/24
341 start_ip: 172.16.0.3
342 end_ip: 172.16.0.12
343 gateway_ip: 172.16.0.1
344 requirements:
345 - network_template:
346 node: External
347 relationship: tosca.relationships.UsesNetworkTemplate
348 - owner:
349 node: mysite_mobile_net
350 relationship: tosca.relationships.MemberOfSlice
351 - connection:
352 node: mysite_vbbu_slice1
353 relationship: tosca.relationships.ConnectsToSlice
354
355 lan_3gpp_s5s8_pgw_network:
356 type: tosca.nodes.network.Network.XOS
357 properties:
358 ip_version: 4
359 labels: lan_3gpp_s5s8_pgw_net
360 cidr: 172.17.1.0/24
361 start_ip: 172.17.1.2
362 end_ip: 172.17.1.8
363 gateway_ip: 172.17.1.1
364 requirements:
365 - network_template:
366 node: External
367 relationship: tosca.relationships.UsesNetworkTemplate
368 - owner:
369 node: mysite_mobile_net
370 relationship: tosca.relationships.MemberOfSlice
371 - connection:
372 node: mysite_vpgwc_slice1
373 relationship: tosca.relationships.ConnectsToSlice
374
Pingping Lin60be9682017-01-20 18:39:00 -0800375 shared_network:
376 type: tosca.nodes.network.Network.XOS
377 properties:
378 ip_version: 4
379 cidr: 172.17.8.0/24
380 requirements:
381 - network_template:
382 node: External
383 relationship: tosca.relationships.UsesNetworkTemplate
384 - owner:
385 node: mysite_mobile_net
386 relationship: tosca.relationships.MemberOfSlice
387 - slice:
388 node: mysite_mobile_net
389 relationship: tosca.relationships.ConnectsToSlice
390
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000391 mysite:
392 type: tosca.nodes.Site
393
394 mcord-bbu-multi-nic:
395 type: tosca.nodes.Image
396
397 mcord-vpgwc-onos-multi-nic:
398 type: tosca.nodes.Image
399
Pingping Lin4d155ce2016-09-29 21:13:50 +0000400 trusty-server-multi-nic:
401 type: tosca.nodes.Image
402
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000403 mysite_management:
404 description: This slice exists solely to own the management network
405 type: tosca.nodes.Slice
406 properties:
407 network: noauto
408 requirements:
409 - site:
410 node: mysite
411 relationship: tosca.relationships.MemberOfSite
412
413 mysite_mobile_net:
414 description: This slice exists solely to own the mobile network
415 type: tosca.nodes.Slice
416 properties:
417 network: noauto
418 requirements:
419 - site:
420 node: mysite
421 relationship: tosca.relationships.MemberOfSite
422
423 mysite_vbbu_slice1:
424 description: vBBU Service Slice 1
425 type: tosca.nodes.Slice
426 requirements:
427 - vBBU:
428 node: vBBU
429 relationship: tosca.relationships.MemberOfService
430 - site:
431 node: mysite
432 relationship: tosca.relationships.MemberOfSite
433 - default_image:
434 node: mcord-bbu-multi-nic
435 relationship: tosca.relationships.DefaultImage
436 - default_flavor:
437 node: m1.xlarge
438 relationship: tosca.relationships.DefaultFlavor
439 - management:
440 node: management
441 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin60be9682017-01-20 18:39:00 -0800442 - connection:
443 node: shared_network
444 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000445 properties:
446 network: noauto
447# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000448#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000449
450 mysite_vpgwc_slice1:
451 description: vPGWC Service Slice 1
452 type: tosca.nodes.Slice
453 requirements:
454 - vPGWC:
455 node: vPGWC
456 relationship: tosca.relationships.MemberOfService
457 - site:
458 node: mysite
459 relationship: tosca.relationships.MemberOfSite
460 - default_image:
461 node: mcord-vpgwc-onos-multi-nic
462 relationship: tosca.relationships.DefaultImage
463 - default_flavor:
464 node: m1.xlarge
465 relationship: tosca.relationships.DefaultFlavor
466 - management:
467 node: management
468 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin60be9682017-01-20 18:39:00 -0800469 - connection:
470 node: shared_network
471 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000472 properties:
473 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000474
475 mysite_vsgw_slice1:
476 description: vSGW Service Slice 1
477 type: tosca.nodes.Slice
478 requirements:
479 - vSGW:
480 node: vSGW
481 relationship: tosca.relationships.MemberOfService
482 - site:
483 node: mysite
484 relationship: tosca.relationships.MemberOfSite
485 - default_image:
486 node: trusty-server-multi-nic
487 relationship: tosca.relationships.DefaultImage
488 - default_flavor:
489 node: m1.xlarge
490 relationship: tosca.relationships.DefaultFlavor
491 - management:
492 node: management
493 relationship: tosca.relationships.ConnectsToNetwork
494 properties:
495 network: noauto
496
Saleil Bhat9462d932017-01-20 20:09:06 -0800497
498 mysite_vmme_slice1:
499 description: vMME Service Slice 1
500 type: tosca.nodes.Slice
501 requirements:
502 - vMME:
503 node: vMME
504 relationship: tosca.relationships.MemberOfService
505 - site:
506 node: mysite
507 relationship: tosca.relationships.MemberOfSite
508 - default_image:
509 node: trusty-server-multi-nic
510 relationship: tosca.relationships.DefaultImage
511 - default_flavor:
512 node: m1.xlarge
513 relationship: tosca.relationships.DefaultFlavor
514 - management:
515 node: management
516 relationship: tosca.relationships.ConnectsToNetwork
517 properties:
518 network: noauto
519
Saleil Bhat9462d932017-01-20 20:09:06 -0800520
521 tenant#vmmetenant1:
522 type: tosca.nodes.VMMETenant
523 properties:
524 tenant_message: just a message
Saleil Bhata9f32372017-01-23 18:48:49 -0800525 image_name: default
Saleil Bhat9462d932017-01-20 20:09:06 -0800526 requirements:
527 - tenant:
528 node: vMME
529 relationship: tosca.relationships.MemberOfService
530 - dependency:
531 node: mysite_vmme_slice1
532 relationship: tosca.relationships.DependsOn
Saleil Bhata9f32372017-01-23 18:48:49 -0800533
534
535 tenant#vmmetenant2:
536 type: tosca.nodes.VMMETenant
537 properties:
538 tenant_message: just a message 2
539 image_name: mcord-vpgwc-onos-multi-nic
540 requirements:
541 - tenant:
542 node: vMME
543 relationship: tosca.relationships.MemberOfService
544 - dependency:
545 node: mysite_vmme_slice1
546 relationship: tosca.relationships.DependsOn
547
548
Pingping Linc5bf2e52016-10-05 01:50:08 +0000549#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800550
551# mysite_VPGWC_Component:
552# description: MCORD Service default Component
553# type: tosca.nodes.VPGWCComponent
554# requirements:
555# - provider_service:
556# node: vPGWC
557# relationship: tosca.relationships.MemberOfService
558# - vpgwc_slice:
559# node: mysite_vpgwc_slice1
560# relationship: tosca.relationships.MemberOfSlice
561# properties:
562# display_message: vPGWC looks good!
563# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000564