blob: e2addad031895a2a5842eed8d14f0074a6f96572 [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
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000275 m1.large:
276 type: tosca.nodes.Flavor
277 m1.small:
278 type: tosca.nodes.Flavor
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000279
280 Private:
281 type: tosca.nodes.NetworkTemplate
282
283 External:
284 type: tosca.nodes.NetworkTemplate
285
286 management_template:
287 type: tosca.nodes.NetworkTemplate
288 properties:
289 visibility: private
290 translation: none
291
292 management:
293 type: tosca.nodes.network.Network.XOS
294# properties:
295# no-create: true
296# no-delete: true
297# no-update: true
298
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000299 management_hosts_template:
300 type: tosca.nodes.NetworkTemplate
301 properties:
302 visibility: private
303 translation: none
304 vtn_kind: MANAGEMENT_HOST
305
306 management_host:
307 type: tosca.nodes.network.Network
308 properties:
309 ip_version: 4
310 cidr: 10.1.0.0/24
311 start_ip: 10.1.0.128
312 end_ip: 10.1.0.254
313 requirements:
314 - network_template:
315 node: management_hosts_template
316 relationship: tosca.relationships.UsesNetworkTemplate
317 - owner:
318 node: mysite_management
319 relationship: tosca.relationships.MemberOfSlice
320
Pingping Linf90e2c32017-01-29 00:16:34 +0000321 vsg_template:
322 type: tosca.nodes.NetworkTemplate
323 properties:
324 visibility: private
325 translation: none
326 vtn_kind: VSG
327
328 vsg_network:
329 type: tosca.nodes.network.Network
330 properties:
331 ip_version: 4
332 cidr: 101.0.0.0/24
333 requirements:
334 - network_template:
335 node: vsg_template
336 relationship: tosca.relationships.UsesNetworkTemplate
337 - owner:
338 node: mysite_vbbu_slice1
339 relationship: tosca.relationships.MemberOfSlice
340 - connection:
341 node: mysite_vbbu_slice1
342 relationship: tosca.relationships.ConnectsToSlice
343
Pingping Linf21fa692017-01-25 02:29:54 +0000344# lan_3gpp_s1mme_network:
345# type: tosca.nodes.network.Network.XOS
346# properties:
347# ip_version: 4
348# labels: lan_3gpp_s1uc_net
349# cidr: 172.16.1.0/24
350# start_ip: 172.16.1.3
351# end_ip: 172.16.1.12
352# gateway_ip: 172.16.1.1
353# requirements:
354# - network_template:
355# node: External
356# relationship: tosca.relationships.UsesNetworkTemplate
357# - owner:
358# node: mysite_mobile_net
359# relationship: tosca.relationships.MemberOfSlice
360# - connection:
361# node: mysite_vbbu_slice1
362# relationship: tosca.relationships.ConnectsToSlice
363#
364# lan_3gpp_s1u_network:
365# type: tosca.nodes.network.Network.XOS
366# properties:
367# ip_version: 4
368# labels: lan_3gpp_s1u_net
369# cidr: 172.16.2.0/24
370# start_ip: 172.16.2.3
371# end_ip: 172.16.2.12
372# gateway_ip: 172.16.16.1
373# requirements:
374# - network_template:
375# node: External
376# relationship: tosca.relationships.UsesNetworkTemplate
377# - owner:
378# node: mysite_mobile_net
379# relationship: tosca.relationships.MemberOfSlice
380# - connection:
381# node: mysite_vbbu_slice1
382# relationship: tosca.relationships.ConnectsToSlice
383#
384# lan_rru_network:
385# type: tosca.nodes.network.Network.XOS
386# properties:
387# ip_version: 4
388# labels: lan_rru_net
389# cidr: 172.16.0.0/24
390# start_ip: 172.16.0.3
391# end_ip: 172.16.0.12
392# gateway_ip: 172.16.0.1
393# requirements:
394# - network_template:
395# node: External
396# relationship: tosca.relationships.UsesNetworkTemplate
397# - owner:
398# node: mysite_mobile_net
399# relationship: tosca.relationships.MemberOfSlice
400# - connection:
401# node: mysite_vbbu_slice1
402# relationship: tosca.relationships.ConnectsToSlice
403#
404# lan_3gpp_s5s8_pgw_network:
405# type: tosca.nodes.network.Network.XOS
406# properties:
407# ip_version: 4
408# labels: lan_3gpp_s5s8_pgw_net
409# cidr: 172.17.1.0/24
410# start_ip: 172.17.1.2
411# end_ip: 172.17.1.8
412# gateway_ip: 172.17.1.1
413# requirements:
414# - network_template:
415# node: External
416# relationship: tosca.relationships.UsesNetworkTemplate
417# - owner:
418# node: mysite_mobile_net
419# relationship: tosca.relationships.MemberOfSlice
420# - connection:
421# node: mysite_vpgwc_slice1
422# relationship: tosca.relationships.ConnectsToSlice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000423
Pingping Lin60be9682017-01-20 18:39:00 -0800424 shared_network:
425 type: tosca.nodes.network.Network.XOS
426 properties:
427 ip_version: 4
Pingping Lin3be0aa12017-01-25 23:39:16 +0000428 cidr: 100.0.0.0/24
Pingping Lin60be9682017-01-20 18:39:00 -0800429 requirements:
430 - network_template:
431 node: External
432 relationship: tosca.relationships.UsesNetworkTemplate
433 - owner:
434 node: mysite_mobile_net
435 relationship: tosca.relationships.MemberOfSlice
436 - slice:
437 node: mysite_mobile_net
438 relationship: tosca.relationships.ConnectsToSlice
439
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000440 mysite:
441 type: tosca.nodes.Site
442
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000443 licenseserver:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000444 type: tosca.nodes.Image
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000445 bbu:
446 type: tosca.nodes.Image
447 bbu_kernel:
448 type: tosca.nodes.Image
449 mme:
450 type: tosca.nodes.Image
451 hss:
452 type: tosca.nodes.Image
453 sgwc:
454 type: tosca.nodes.Image
455 sgwu:
456 type: tosca.nodes.Image
457 pgwc:
458 type: tosca.nodes.Image
459 pgwu:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000460 type: tosca.nodes.Image
461
Pingping Lin4d155ce2016-09-29 21:13:50 +0000462 trusty-server-multi-nic:
463 type: tosca.nodes.Image
464
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000465 mysite_management:
466 description: This slice exists solely to own the management network
467 type: tosca.nodes.Slice
468 properties:
469 network: noauto
470 requirements:
471 - site:
472 node: mysite
473 relationship: tosca.relationships.MemberOfSite
474
475 mysite_mobile_net:
476 description: This slice exists solely to own the mobile 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_vbbu_slice1:
486 description: vBBU Service Slice 1
487 type: tosca.nodes.Slice
488 requirements:
489 - vBBU:
490 node: vBBU
491 relationship: tosca.relationships.MemberOfService
492 - site:
493 node: mysite
494 relationship: tosca.relationships.MemberOfSite
495 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000496 node: bbu
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000497 relationship: tosca.relationships.DefaultImage
498 - default_flavor:
499 node: m1.xlarge
500 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000501 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000502 node: management
503 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000504 - connection_to_management_host:
505 node: management_host
506 relationship: tosca.relationships.ConnectsToNetwork
507 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800508 node: shared_network
509 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000510 properties:
511 network: noauto
512# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000513#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000514
515 mysite_vpgwc_slice1:
516 description: vPGWC Service Slice 1
517 type: tosca.nodes.Slice
518 requirements:
519 - vPGWC:
520 node: vPGWC
521 relationship: tosca.relationships.MemberOfService
522 - site:
523 node: mysite
524 relationship: tosca.relationships.MemberOfSite
525 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000526 node: pgwc
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000527 relationship: tosca.relationships.DefaultImage
528 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000529 node: m1.large
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000530 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000531 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000532 node: management
533 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000534 - connection_to_management_host:
535 node: management_host
536 relationship: tosca.relationships.ConnectsToNetwork
537 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800538 node: shared_network
539 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000540 properties:
541 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000542
543 mysite_vsgw_slice1:
544 description: vSGW Service Slice 1
545 type: tosca.nodes.Slice
546 requirements:
547 - vSGW:
548 node: vSGW
549 relationship: tosca.relationships.MemberOfService
550 - site:
551 node: mysite
552 relationship: tosca.relationships.MemberOfSite
553 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000554 node: sgwc
JianHao8fa69232017-01-18 03:05:01 +0000555 relationship: tosca.relationships.DefaultImage
556 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000557 node: m1.large
JianHao8fa69232017-01-18 03:05:01 +0000558 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000559 - connection_to_management:
JianHao8fa69232017-01-18 03:05:01 +0000560 node: management
561 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000562 - connection_to_management_host:
563 node: management_host
564 relationship: tosca.relationships.ConnectsToNetwork
565 - connection_to_shared_network:
566 node: shared_network
567 relationship: tosca.relationships.ConnectsToNetwork
JianHao8fa69232017-01-18 03:05:01 +0000568 properties:
569 network: noauto
570
Saleil Bhat9462d932017-01-20 20:09:06 -0800571
572 mysite_vmme_slice1:
573 description: vMME Service Slice 1
574 type: tosca.nodes.Slice
575 requirements:
576 - vMME:
577 node: vMME
578 relationship: tosca.relationships.MemberOfService
579 - site:
580 node: mysite
581 relationship: tosca.relationships.MemberOfSite
582 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000583 node: mme
Saleil Bhat9462d932017-01-20 20:09:06 -0800584 relationship: tosca.relationships.DefaultImage
585 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000586 node: m1.large
Saleil Bhat9462d932017-01-20 20:09:06 -0800587 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000588 - connection_to_management:
Saleil Bhat9462d932017-01-20 20:09:06 -0800589 node: management
590 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000591 - connection_to_management_host:
592 node: management_host
593 relationship: tosca.relationships.ConnectsToNetwork
594 - connection_to_shared_network:
595 node: shared_network
596 relationship: tosca.relationships.ConnectsToNetwork
Saleil Bhat9462d932017-01-20 20:09:06 -0800597 properties:
598 network: noauto
599
Saleil Bhat9462d932017-01-20 20:09:06 -0800600
601 tenant#vmmetenant1:
602 type: tosca.nodes.VMMETenant
603 properties:
604 tenant_message: just a message
Saleil Bhata9f32372017-01-23 18:48:49 -0800605 image_name: default
Saleil Bhat9462d932017-01-20 20:09:06 -0800606 requirements:
607 - tenant:
608 node: vMME
609 relationship: tosca.relationships.MemberOfService
610 - dependency:
611 node: mysite_vmme_slice1
612 relationship: tosca.relationships.DependsOn
Saleil Bhata9f32372017-01-23 18:48:49 -0800613
614
615 tenant#vmmetenant2:
616 type: tosca.nodes.VMMETenant
617 properties:
618 tenant_message: just a message 2
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000619 image_name: trusty-server-multi-nic
Saleil Bhata9f32372017-01-23 18:48:49 -0800620 requirements:
621 - tenant:
622 node: vMME
623 relationship: tosca.relationships.MemberOfService
624 - dependency:
625 node: mysite_vmme_slice1
626 relationship: tosca.relationships.DependsOn
627
628
Pingping Linc5bf2e52016-10-05 01:50:08 +0000629#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800630
631# mysite_VPGWC_Component:
632# description: MCORD Service default Component
633# type: tosca.nodes.VPGWCComponent
634# requirements:
635# - provider_service:
636# node: vPGWC
637# relationship: tosca.relationships.MemberOfService
638# - vpgwc_slice:
639# node: mysite_vpgwc_slice1
640# relationship: tosca.relationships.MemberOfSlice
641# properties:
642# display_message: vPGWC looks good!
643# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000644