blob: 96cb429f29a7dcbcb24022a3b8467d3331e23d3f [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
Saleil Bhat25deed42017-02-01 17:24:51 -0800180 tosca.nodes.VPGWCTenant:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000181 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
Saleil Bhat25deed42017-02-01 17:24:51 -0800199 image_name:
200 type: string
201 required: true
202 default: default
203 description: Name of VM image
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000204
JianHao8fa69232017-01-18 03:05:01 +0000205 tosca.nodes.VSGWTenant:
206 derived_from: tosca.nodes.Root
207 description: >
208 A Tenant of the VSGW Service
209 properties:
210 kind:
211 type: string
212 default: generic
213 description: Kind of tenant
214 service_specific_id:
215 type: string
216 required: false
217 description: Service specific ID opaque to XOS but meaningful to service
218 tenant_message:
219 type: string
220 required: false
221 default: New vSGW Tenant
222 description: Just a message
Saleil Bhat25deed42017-02-01 17:24:51 -0800223 image_name:
224 type: string
225 required: true
226 default: default
227 description: Name of VM image
JianHao8fa69232017-01-18 03:05:01 +0000228
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000229topology_template:
230 node_templates:
231 vBBU:
232 type: tosca.nodes.MCORDService
233 requirements:
234 properties:
235 kind: RAN
236 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700237 view_url: /admin/vbbu/vbbucomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000238 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000239 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000240 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000241 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000242
243 vPGWC:
244 type: tosca.nodes.MCORDService
245 requirements:
246 properties:
247 kind: vEPC
248 icon_url: /static/mCordServices/service_server.png
Saleil Bhat25deed42017-02-01 17:24:51 -0800249 view_url: /admin/vpgwc/VPGWCTenant
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000250 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lin97c12612016-09-19 23:40:53 +0000251 private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000252 artifacts:
Pingping Lin97c12612016-09-19 23:40:53 +0000253 pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000254
JianHao8fa69232017-01-18 03:05:01 +0000255 vSGW:
256 type: tosca.nodes.MCORDService
257 requirements:
258 properties:
259 kind: vEPC
260 icon_url: /static/mCordServices/service_server.png
261 view_url: /admin/vsgw/vsgwtenant
262 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
263 private_key_fn: /opt/xos/services/vsgw/keys/vSGW_rsa
264 artifacts:
265 pubkey: /opt/xos/services/vsgw/keys/vSGW_rsa.pub
266
Saleil Bhata9f32372017-01-23 18:48:49 -0800267 vMME:
268 type: tosca.nodes.VMMEService
269 requirements:
270 - management:
271 node: management
272 relationship: tosca.relationships.UsesNetwork
273 properties:
274 kind: vEPC
275 icon_url: /static/mCordServices/service_server.png
276 view_url: /admin/vmme/vmmetenant
277 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
278 private_key_fn: /opt/xos/services/vmme/keys/vMME_rsa
279 artifacts:
280 pubkey: /opt/xos/services/vmme/keys/vMME_rsa.pub
281
282
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000283 m1.xlarge:
284 type: tosca.nodes.Flavor
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000285 m1.large:
286 type: tosca.nodes.Flavor
287 m1.small:
288 type: tosca.nodes.Flavor
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000289
290 Private:
291 type: tosca.nodes.NetworkTemplate
292
293 External:
294 type: tosca.nodes.NetworkTemplate
295
296 management_template:
297 type: tosca.nodes.NetworkTemplate
298 properties:
299 visibility: private
300 translation: none
301
302 management:
303 type: tosca.nodes.network.Network.XOS
304# properties:
305# no-create: true
306# no-delete: true
307# no-update: true
308
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000309 management_hosts_template:
310 type: tosca.nodes.NetworkTemplate
311 properties:
312 visibility: private
313 translation: none
314 vtn_kind: MANAGEMENT_HOST
315
316 management_host:
317 type: tosca.nodes.network.Network
318 properties:
319 ip_version: 4
320 cidr: 10.1.0.0/24
321 start_ip: 10.1.0.128
322 end_ip: 10.1.0.254
323 requirements:
324 - network_template:
325 node: management_hosts_template
326 relationship: tosca.relationships.UsesNetworkTemplate
327 - owner:
328 node: mysite_management
329 relationship: tosca.relationships.MemberOfSlice
330
Pingping Linf90e2c32017-01-29 00:16:34 +0000331 vsg_template:
332 type: tosca.nodes.NetworkTemplate
333 properties:
334 visibility: private
335 translation: none
336 vtn_kind: VSG
337
338 vsg_network:
339 type: tosca.nodes.network.Network
340 properties:
341 ip_version: 4
342 cidr: 101.0.0.0/24
343 requirements:
344 - network_template:
345 node: vsg_template
346 relationship: tosca.relationships.UsesNetworkTemplate
347 - owner:
348 node: mysite_vbbu_slice1
349 relationship: tosca.relationships.MemberOfSlice
350 - connection:
351 node: mysite_vbbu_slice1
352 relationship: tosca.relationships.ConnectsToSlice
353
Pingping Linf21fa692017-01-25 02:29:54 +0000354# lan_3gpp_s1mme_network:
355# type: tosca.nodes.network.Network.XOS
356# properties:
357# ip_version: 4
358# labels: lan_3gpp_s1uc_net
359# cidr: 172.16.1.0/24
360# start_ip: 172.16.1.3
361# end_ip: 172.16.1.12
362# gateway_ip: 172.16.1.1
363# requirements:
364# - network_template:
365# node: External
366# relationship: tosca.relationships.UsesNetworkTemplate
367# - owner:
368# node: mysite_mobile_net
369# relationship: tosca.relationships.MemberOfSlice
370# - connection:
371# node: mysite_vbbu_slice1
372# relationship: tosca.relationships.ConnectsToSlice
373#
374# lan_3gpp_s1u_network:
375# type: tosca.nodes.network.Network.XOS
376# properties:
377# ip_version: 4
378# labels: lan_3gpp_s1u_net
379# cidr: 172.16.2.0/24
380# start_ip: 172.16.2.3
381# end_ip: 172.16.2.12
382# gateway_ip: 172.16.16.1
383# requirements:
384# - network_template:
385# node: External
386# relationship: tosca.relationships.UsesNetworkTemplate
387# - owner:
388# node: mysite_mobile_net
389# relationship: tosca.relationships.MemberOfSlice
390# - connection:
391# node: mysite_vbbu_slice1
392# relationship: tosca.relationships.ConnectsToSlice
393#
394# lan_rru_network:
395# type: tosca.nodes.network.Network.XOS
396# properties:
397# ip_version: 4
398# labels: lan_rru_net
399# cidr: 172.16.0.0/24
400# start_ip: 172.16.0.3
401# end_ip: 172.16.0.12
402# gateway_ip: 172.16.0.1
403# requirements:
404# - network_template:
405# node: External
406# relationship: tosca.relationships.UsesNetworkTemplate
407# - owner:
408# node: mysite_mobile_net
409# relationship: tosca.relationships.MemberOfSlice
410# - connection:
411# node: mysite_vbbu_slice1
412# relationship: tosca.relationships.ConnectsToSlice
413#
414# lan_3gpp_s5s8_pgw_network:
415# type: tosca.nodes.network.Network.XOS
416# properties:
417# ip_version: 4
418# labels: lan_3gpp_s5s8_pgw_net
419# cidr: 172.17.1.0/24
420# start_ip: 172.17.1.2
421# end_ip: 172.17.1.8
422# gateway_ip: 172.17.1.1
423# requirements:
424# - network_template:
425# node: External
426# relationship: tosca.relationships.UsesNetworkTemplate
427# - owner:
428# node: mysite_mobile_net
429# relationship: tosca.relationships.MemberOfSlice
430# - connection:
431# node: mysite_vpgwc_slice1
432# relationship: tosca.relationships.ConnectsToSlice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000433
Pingping Lin60be9682017-01-20 18:39:00 -0800434 shared_network:
435 type: tosca.nodes.network.Network.XOS
436 properties:
437 ip_version: 4
Pingping Lin3be0aa12017-01-25 23:39:16 +0000438 cidr: 100.0.0.0/24
Pingping Lin60be9682017-01-20 18:39:00 -0800439 requirements:
440 - network_template:
441 node: External
442 relationship: tosca.relationships.UsesNetworkTemplate
443 - owner:
444 node: mysite_mobile_net
445 relationship: tosca.relationships.MemberOfSlice
446 - slice:
447 node: mysite_mobile_net
448 relationship: tosca.relationships.ConnectsToSlice
449
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000450 mysite:
451 type: tosca.nodes.Site
452
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000453 licenseserver:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000454 type: tosca.nodes.Image
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000455 bbu:
456 type: tosca.nodes.Image
457 bbu_kernel:
458 type: tosca.nodes.Image
459 mme:
460 type: tosca.nodes.Image
461 hss:
462 type: tosca.nodes.Image
463 sgwc:
464 type: tosca.nodes.Image
465 sgwu:
466 type: tosca.nodes.Image
467 pgwc:
468 type: tosca.nodes.Image
469 pgwu:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000470 type: tosca.nodes.Image
471
Pingping Lin4d155ce2016-09-29 21:13:50 +0000472 trusty-server-multi-nic:
473 type: tosca.nodes.Image
474
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000475 mysite_management:
476 description: This slice exists solely to own the management network
477 type: tosca.nodes.Slice
478 properties:
479 network: noauto
480 requirements:
481 - site:
482 node: mysite
483 relationship: tosca.relationships.MemberOfSite
484
485 mysite_mobile_net:
486 description: This slice exists solely to own the mobile network
487 type: tosca.nodes.Slice
488 properties:
489 network: noauto
490 requirements:
491 - site:
492 node: mysite
493 relationship: tosca.relationships.MemberOfSite
494
495 mysite_vbbu_slice1:
496 description: vBBU Service Slice 1
497 type: tosca.nodes.Slice
498 requirements:
499 - vBBU:
500 node: vBBU
501 relationship: tosca.relationships.MemberOfService
502 - site:
503 node: mysite
504 relationship: tosca.relationships.MemberOfSite
505 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000506 node: bbu
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000507 relationship: tosca.relationships.DefaultImage
508 - default_flavor:
509 node: m1.xlarge
510 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000511 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000512 node: management
513 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000514 - connection_to_management_host:
515 node: management_host
516 relationship: tosca.relationships.ConnectsToNetwork
517 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800518 node: shared_network
519 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000520 properties:
521 network: noauto
522# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000523#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000524
525 mysite_vpgwc_slice1:
526 description: vPGWC Service Slice 1
527 type: tosca.nodes.Slice
528 requirements:
529 - vPGWC:
530 node: vPGWC
531 relationship: tosca.relationships.MemberOfService
532 - site:
533 node: mysite
534 relationship: tosca.relationships.MemberOfSite
535 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000536 node: pgwc
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000537 relationship: tosca.relationships.DefaultImage
538 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000539 node: m1.large
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000540 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000541 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000542 node: management
543 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000544 - connection_to_management_host:
545 node: management_host
546 relationship: tosca.relationships.ConnectsToNetwork
547 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800548 node: shared_network
549 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000550 properties:
551 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000552
553 mysite_vsgw_slice1:
554 description: vSGW Service Slice 1
555 type: tosca.nodes.Slice
556 requirements:
557 - vSGW:
558 node: vSGW
559 relationship: tosca.relationships.MemberOfService
560 - site:
561 node: mysite
562 relationship: tosca.relationships.MemberOfSite
563 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000564 node: sgwc
JianHao8fa69232017-01-18 03:05:01 +0000565 relationship: tosca.relationships.DefaultImage
566 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000567 node: m1.large
JianHao8fa69232017-01-18 03:05:01 +0000568 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000569 - connection_to_management:
JianHao8fa69232017-01-18 03:05:01 +0000570 node: management
571 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000572 - connection_to_management_host:
573 node: management_host
574 relationship: tosca.relationships.ConnectsToNetwork
575 - connection_to_shared_network:
576 node: shared_network
577 relationship: tosca.relationships.ConnectsToNetwork
JianHao8fa69232017-01-18 03:05:01 +0000578 properties:
579 network: noauto
580
Saleil Bhat9462d932017-01-20 20:09:06 -0800581
582 mysite_vmme_slice1:
583 description: vMME Service Slice 1
584 type: tosca.nodes.Slice
585 requirements:
586 - vMME:
587 node: vMME
588 relationship: tosca.relationships.MemberOfService
589 - site:
590 node: mysite
591 relationship: tosca.relationships.MemberOfSite
592 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000593 node: mme
Saleil Bhat9462d932017-01-20 20:09:06 -0800594 relationship: tosca.relationships.DefaultImage
595 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000596 node: m1.large
Saleil Bhat9462d932017-01-20 20:09:06 -0800597 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000598 - connection_to_management:
Saleil Bhat9462d932017-01-20 20:09:06 -0800599 node: management
600 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000601 - connection_to_management_host:
602 node: management_host
603 relationship: tosca.relationships.ConnectsToNetwork
604 - connection_to_shared_network:
605 node: shared_network
606 relationship: tosca.relationships.ConnectsToNetwork
Saleil Bhat9462d932017-01-20 20:09:06 -0800607 properties:
608 network: noauto
Saleil Bhat25deed42017-02-01 17:24:51 -0800609 default_node: compute1
Saleil Bhat9462d932017-01-20 20:09:06 -0800610
Saleil Bhat9462d932017-01-20 20:09:06 -0800611
Saleil Bhat25deed42017-02-01 17:24:51 -0800612 tenant#vpgwctenant1:
613 type: tosca.nodes.VPGWCTenant
614 properties:
615 display_message: just a message
616 image_name: pgwc
617 requirements:
618 - tenant:
619 node: vPGWC
620 relationship: tosca.relationships.MemberOfService
621 - dependency:
622 node: mysite_vpgwc_slice1
623 relationship: tosca.relationships.DependsOn
624
Saleil Bhat9462d932017-01-20 20:09:06 -0800625 tenant#vmmetenant1:
626 type: tosca.nodes.VMMETenant
627 properties:
628 tenant_message: just a message
Saleil Bhata9f32372017-01-23 18:48:49 -0800629 image_name: default
Saleil Bhat9462d932017-01-20 20:09:06 -0800630 requirements:
631 - tenant:
632 node: vMME
633 relationship: tosca.relationships.MemberOfService
634 - dependency:
635 node: mysite_vmme_slice1
636 relationship: tosca.relationships.DependsOn
Saleil Bhata9f32372017-01-23 18:48:49 -0800637
638
639 tenant#vmmetenant2:
640 type: tosca.nodes.VMMETenant
641 properties:
642 tenant_message: just a message 2
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000643 image_name: trusty-server-multi-nic
Saleil Bhata9f32372017-01-23 18:48:49 -0800644 requirements:
645 - tenant:
646 node: vMME
647 relationship: tosca.relationships.MemberOfService
648 - dependency:
649 node: mysite_vmme_slice1
650 relationship: tosca.relationships.DependsOn
651
652