blob: 00d36ba683233a1740cc6e5c145e6399478a09ca [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 Linf21fa692017-01-25 02:29:54 +0000321# lan_3gpp_s1mme_network:
322# type: tosca.nodes.network.Network.XOS
323# properties:
324# ip_version: 4
325# labels: lan_3gpp_s1uc_net
326# cidr: 172.16.1.0/24
327# start_ip: 172.16.1.3
328# end_ip: 172.16.1.12
329# gateway_ip: 172.16.1.1
330# requirements:
331# - network_template:
332# node: External
333# relationship: tosca.relationships.UsesNetworkTemplate
334# - owner:
335# node: mysite_mobile_net
336# relationship: tosca.relationships.MemberOfSlice
337# - connection:
338# node: mysite_vbbu_slice1
339# relationship: tosca.relationships.ConnectsToSlice
340#
341# lan_3gpp_s1u_network:
342# type: tosca.nodes.network.Network.XOS
343# properties:
344# ip_version: 4
345# labels: lan_3gpp_s1u_net
346# cidr: 172.16.2.0/24
347# start_ip: 172.16.2.3
348# end_ip: 172.16.2.12
349# gateway_ip: 172.16.16.1
350# requirements:
351# - network_template:
352# node: External
353# relationship: tosca.relationships.UsesNetworkTemplate
354# - owner:
355# node: mysite_mobile_net
356# relationship: tosca.relationships.MemberOfSlice
357# - connection:
358# node: mysite_vbbu_slice1
359# relationship: tosca.relationships.ConnectsToSlice
360#
361# lan_rru_network:
362# type: tosca.nodes.network.Network.XOS
363# properties:
364# ip_version: 4
365# labels: lan_rru_net
366# cidr: 172.16.0.0/24
367# start_ip: 172.16.0.3
368# end_ip: 172.16.0.12
369# gateway_ip: 172.16.0.1
370# requirements:
371# - network_template:
372# node: External
373# relationship: tosca.relationships.UsesNetworkTemplate
374# - owner:
375# node: mysite_mobile_net
376# relationship: tosca.relationships.MemberOfSlice
377# - connection:
378# node: mysite_vbbu_slice1
379# relationship: tosca.relationships.ConnectsToSlice
380#
381# lan_3gpp_s5s8_pgw_network:
382# type: tosca.nodes.network.Network.XOS
383# properties:
384# ip_version: 4
385# labels: lan_3gpp_s5s8_pgw_net
386# cidr: 172.17.1.0/24
387# start_ip: 172.17.1.2
388# end_ip: 172.17.1.8
389# gateway_ip: 172.17.1.1
390# requirements:
391# - network_template:
392# node: External
393# relationship: tosca.relationships.UsesNetworkTemplate
394# - owner:
395# node: mysite_mobile_net
396# relationship: tosca.relationships.MemberOfSlice
397# - connection:
398# node: mysite_vpgwc_slice1
399# relationship: tosca.relationships.ConnectsToSlice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000400
Pingping Lin60be9682017-01-20 18:39:00 -0800401 shared_network:
402 type: tosca.nodes.network.Network.XOS
403 properties:
404 ip_version: 4
Pingping Lin3be0aa12017-01-25 23:39:16 +0000405 cidr: 100.0.0.0/24
Pingping Lin60be9682017-01-20 18:39:00 -0800406 requirements:
407 - network_template:
408 node: External
409 relationship: tosca.relationships.UsesNetworkTemplate
410 - owner:
411 node: mysite_mobile_net
412 relationship: tosca.relationships.MemberOfSlice
413 - slice:
414 node: mysite_mobile_net
415 relationship: tosca.relationships.ConnectsToSlice
416
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000417 mysite:
418 type: tosca.nodes.Site
419
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000420 licenseserver:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000421 type: tosca.nodes.Image
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000422 bbu:
423 type: tosca.nodes.Image
424 bbu_kernel:
425 type: tosca.nodes.Image
426 mme:
427 type: tosca.nodes.Image
428 hss:
429 type: tosca.nodes.Image
430 sgwc:
431 type: tosca.nodes.Image
432 sgwu:
433 type: tosca.nodes.Image
434 pgwc:
435 type: tosca.nodes.Image
436 pgwu:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000437 type: tosca.nodes.Image
438
Pingping Lin4d155ce2016-09-29 21:13:50 +0000439 trusty-server-multi-nic:
440 type: tosca.nodes.Image
441
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000442 mysite_management:
443 description: This slice exists solely to own the management network
444 type: tosca.nodes.Slice
445 properties:
446 network: noauto
447 requirements:
448 - site:
449 node: mysite
450 relationship: tosca.relationships.MemberOfSite
451
452 mysite_mobile_net:
453 description: This slice exists solely to own the mobile network
454 type: tosca.nodes.Slice
455 properties:
456 network: noauto
457 requirements:
458 - site:
459 node: mysite
460 relationship: tosca.relationships.MemberOfSite
461
462 mysite_vbbu_slice1:
463 description: vBBU Service Slice 1
464 type: tosca.nodes.Slice
465 requirements:
466 - vBBU:
467 node: vBBU
468 relationship: tosca.relationships.MemberOfService
469 - site:
470 node: mysite
471 relationship: tosca.relationships.MemberOfSite
472 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000473 node: bbu
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000474 relationship: tosca.relationships.DefaultImage
475 - default_flavor:
476 node: m1.xlarge
477 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000478 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000479 node: management
480 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000481 - connection_to_management_host:
482 node: management_host
483 relationship: tosca.relationships.ConnectsToNetwork
484 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800485 node: shared_network
486 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000487 properties:
488 network: noauto
489# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000490#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000491
492 mysite_vpgwc_slice1:
493 description: vPGWC Service Slice 1
494 type: tosca.nodes.Slice
495 requirements:
496 - vPGWC:
497 node: vPGWC
498 relationship: tosca.relationships.MemberOfService
499 - site:
500 node: mysite
501 relationship: tosca.relationships.MemberOfSite
502 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000503 node: pgwc
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000504 relationship: tosca.relationships.DefaultImage
505 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000506 node: m1.large
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000507 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000508 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000509 node: management
510 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000511 - connection_to_management_host:
512 node: management_host
513 relationship: tosca.relationships.ConnectsToNetwork
514 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800515 node: shared_network
516 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000517 properties:
518 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000519
520 mysite_vsgw_slice1:
521 description: vSGW Service Slice 1
522 type: tosca.nodes.Slice
523 requirements:
524 - vSGW:
525 node: vSGW
526 relationship: tosca.relationships.MemberOfService
527 - site:
528 node: mysite
529 relationship: tosca.relationships.MemberOfSite
530 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000531 node: sgwc
JianHao8fa69232017-01-18 03:05:01 +0000532 relationship: tosca.relationships.DefaultImage
533 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000534 node: m1.large
JianHao8fa69232017-01-18 03:05:01 +0000535 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000536 - connection_to_management:
JianHao8fa69232017-01-18 03:05:01 +0000537 node: management
538 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000539 - connection_to_management_host:
540 node: management_host
541 relationship: tosca.relationships.ConnectsToNetwork
542 - connection_to_shared_network:
543 node: shared_network
544 relationship: tosca.relationships.ConnectsToNetwork
JianHao8fa69232017-01-18 03:05:01 +0000545 properties:
546 network: noauto
547
Saleil Bhat9462d932017-01-20 20:09:06 -0800548
549 mysite_vmme_slice1:
550 description: vMME Service Slice 1
551 type: tosca.nodes.Slice
552 requirements:
553 - vMME:
554 node: vMME
555 relationship: tosca.relationships.MemberOfService
556 - site:
557 node: mysite
558 relationship: tosca.relationships.MemberOfSite
559 - default_image:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000560 node: mme
Saleil Bhat9462d932017-01-20 20:09:06 -0800561 relationship: tosca.relationships.DefaultImage
562 - default_flavor:
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000563 node: m1.large
Saleil Bhat9462d932017-01-20 20:09:06 -0800564 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000565 - connection_to_management:
Saleil Bhat9462d932017-01-20 20:09:06 -0800566 node: management
567 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000568 - connection_to_management_host:
569 node: management_host
570 relationship: tosca.relationships.ConnectsToNetwork
571 - connection_to_shared_network:
572 node: shared_network
573 relationship: tosca.relationships.ConnectsToNetwork
Saleil Bhat9462d932017-01-20 20:09:06 -0800574 properties:
575 network: noauto
576
Saleil Bhat9462d932017-01-20 20:09:06 -0800577
578 tenant#vmmetenant1:
579 type: tosca.nodes.VMMETenant
580 properties:
581 tenant_message: just a message
Saleil Bhata9f32372017-01-23 18:48:49 -0800582 image_name: default
Saleil Bhat9462d932017-01-20 20:09:06 -0800583 requirements:
584 - tenant:
585 node: vMME
586 relationship: tosca.relationships.MemberOfService
587 - dependency:
588 node: mysite_vmme_slice1
589 relationship: tosca.relationships.DependsOn
Saleil Bhata9f32372017-01-23 18:48:49 -0800590
591
592 tenant#vmmetenant2:
593 type: tosca.nodes.VMMETenant
594 properties:
595 tenant_message: just a message 2
Pingping Lin65a7a1e2017-01-26 22:53:59 +0000596 image_name: trusty-server-multi-nic
Saleil Bhata9f32372017-01-23 18:48:49 -0800597 requirements:
598 - tenant:
599 node: vMME
600 relationship: tosca.relationships.MemberOfService
601 - dependency:
602 node: mysite_vmme_slice1
603 relationship: tosca.relationships.DependsOn
604
605
Pingping Linc5bf2e52016-10-05 01:50:08 +0000606#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800607
608# mysite_VPGWC_Component:
609# description: MCORD Service default Component
610# type: tosca.nodes.VPGWCComponent
611# requirements:
612# - provider_service:
613# node: vPGWC
614# relationship: tosca.relationships.MemberOfService
615# - vpgwc_slice:
616# node: mysite_vpgwc_slice1
617# relationship: tosca.relationships.MemberOfSlice
618# properties:
619# display_message: vPGWC looks good!
620# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000621