blob: 5aeb7a8dea38d7f13f54a6bb80726cc5b3d7e0d9 [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
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000295 management_hosts_template:
296 type: tosca.nodes.NetworkTemplate
297 properties:
298 visibility: private
299 translation: none
300 vtn_kind: MANAGEMENT_HOST
301
302 management_host:
303 type: tosca.nodes.network.Network
304 properties:
305 ip_version: 4
306 cidr: 10.1.0.0/24
307 start_ip: 10.1.0.128
308 end_ip: 10.1.0.254
309 requirements:
310 - network_template:
311 node: management_hosts_template
312 relationship: tosca.relationships.UsesNetworkTemplate
313 - owner:
314 node: mysite_management
315 relationship: tosca.relationships.MemberOfSlice
316
Pingping Linf21fa692017-01-25 02:29:54 +0000317# lan_3gpp_s1mme_network:
318# type: tosca.nodes.network.Network.XOS
319# properties:
320# ip_version: 4
321# labels: lan_3gpp_s1uc_net
322# cidr: 172.16.1.0/24
323# start_ip: 172.16.1.3
324# end_ip: 172.16.1.12
325# gateway_ip: 172.16.1.1
326# requirements:
327# - network_template:
328# node: External
329# relationship: tosca.relationships.UsesNetworkTemplate
330# - owner:
331# node: mysite_mobile_net
332# relationship: tosca.relationships.MemberOfSlice
333# - connection:
334# node: mysite_vbbu_slice1
335# relationship: tosca.relationships.ConnectsToSlice
336#
337# lan_3gpp_s1u_network:
338# type: tosca.nodes.network.Network.XOS
339# properties:
340# ip_version: 4
341# labels: lan_3gpp_s1u_net
342# cidr: 172.16.2.0/24
343# start_ip: 172.16.2.3
344# end_ip: 172.16.2.12
345# gateway_ip: 172.16.16.1
346# requirements:
347# - network_template:
348# node: External
349# relationship: tosca.relationships.UsesNetworkTemplate
350# - owner:
351# node: mysite_mobile_net
352# relationship: tosca.relationships.MemberOfSlice
353# - connection:
354# node: mysite_vbbu_slice1
355# relationship: tosca.relationships.ConnectsToSlice
356#
357# lan_rru_network:
358# type: tosca.nodes.network.Network.XOS
359# properties:
360# ip_version: 4
361# labels: lan_rru_net
362# cidr: 172.16.0.0/24
363# start_ip: 172.16.0.3
364# end_ip: 172.16.0.12
365# gateway_ip: 172.16.0.1
366# requirements:
367# - network_template:
368# node: External
369# relationship: tosca.relationships.UsesNetworkTemplate
370# - owner:
371# node: mysite_mobile_net
372# relationship: tosca.relationships.MemberOfSlice
373# - connection:
374# node: mysite_vbbu_slice1
375# relationship: tosca.relationships.ConnectsToSlice
376#
377# lan_3gpp_s5s8_pgw_network:
378# type: tosca.nodes.network.Network.XOS
379# properties:
380# ip_version: 4
381# labels: lan_3gpp_s5s8_pgw_net
382# cidr: 172.17.1.0/24
383# start_ip: 172.17.1.2
384# end_ip: 172.17.1.8
385# gateway_ip: 172.17.1.1
386# requirements:
387# - network_template:
388# node: External
389# relationship: tosca.relationships.UsesNetworkTemplate
390# - owner:
391# node: mysite_mobile_net
392# relationship: tosca.relationships.MemberOfSlice
393# - connection:
394# node: mysite_vpgwc_slice1
395# relationship: tosca.relationships.ConnectsToSlice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000396
Pingping Lin60be9682017-01-20 18:39:00 -0800397 shared_network:
398 type: tosca.nodes.network.Network.XOS
399 properties:
400 ip_version: 4
Pingping Lin3be0aa12017-01-25 23:39:16 +0000401 cidr: 100.0.0.0/24
Pingping Lin60be9682017-01-20 18:39:00 -0800402 requirements:
403 - network_template:
404 node: External
405 relationship: tosca.relationships.UsesNetworkTemplate
406 - owner:
407 node: mysite_mobile_net
408 relationship: tosca.relationships.MemberOfSlice
409 - slice:
410 node: mysite_mobile_net
411 relationship: tosca.relationships.ConnectsToSlice
412
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000413 mysite:
414 type: tosca.nodes.Site
415
416 mcord-bbu-multi-nic:
417 type: tosca.nodes.Image
418
419 mcord-vpgwc-onos-multi-nic:
420 type: tosca.nodes.Image
421
Pingping Lin4d155ce2016-09-29 21:13:50 +0000422 trusty-server-multi-nic:
423 type: tosca.nodes.Image
424
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000425 mysite_management:
426 description: This slice exists solely to own the management network
427 type: tosca.nodes.Slice
428 properties:
429 network: noauto
430 requirements:
431 - site:
432 node: mysite
433 relationship: tosca.relationships.MemberOfSite
434
435 mysite_mobile_net:
436 description: This slice exists solely to own the mobile network
437 type: tosca.nodes.Slice
438 properties:
439 network: noauto
440 requirements:
441 - site:
442 node: mysite
443 relationship: tosca.relationships.MemberOfSite
444
445 mysite_vbbu_slice1:
446 description: vBBU Service Slice 1
447 type: tosca.nodes.Slice
448 requirements:
449 - vBBU:
450 node: vBBU
451 relationship: tosca.relationships.MemberOfService
452 - site:
453 node: mysite
454 relationship: tosca.relationships.MemberOfSite
455 - default_image:
456 node: mcord-bbu-multi-nic
457 relationship: tosca.relationships.DefaultImage
458 - default_flavor:
459 node: m1.xlarge
460 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000461 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000462 node: management
463 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000464 - connection_to_management_host:
465 node: management_host
466 relationship: tosca.relationships.ConnectsToNetwork
467 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800468 node: shared_network
469 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000470 properties:
471 network: noauto
472# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000473#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000474
475 mysite_vpgwc_slice1:
476 description: vPGWC Service Slice 1
477 type: tosca.nodes.Slice
478 requirements:
479 - vPGWC:
480 node: vPGWC
481 relationship: tosca.relationships.MemberOfService
482 - site:
483 node: mysite
484 relationship: tosca.relationships.MemberOfSite
485 - default_image:
486 node: mcord-vpgwc-onos-multi-nic
487 relationship: tosca.relationships.DefaultImage
488 - default_flavor:
489 node: m1.xlarge
490 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000491 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000492 node: management
493 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000494 - connection_to_management_host:
495 node: management_host
496 relationship: tosca.relationships.ConnectsToNetwork
497 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800498 node: shared_network
499 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000500 properties:
501 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000502
503 mysite_vsgw_slice1:
504 description: vSGW Service Slice 1
505 type: tosca.nodes.Slice
506 requirements:
507 - vSGW:
508 node: vSGW
509 relationship: tosca.relationships.MemberOfService
510 - site:
511 node: mysite
512 relationship: tosca.relationships.MemberOfSite
513 - default_image:
514 node: trusty-server-multi-nic
515 relationship: tosca.relationships.DefaultImage
516 - default_flavor:
517 node: m1.xlarge
518 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000519 - connection_to_management:
JianHao8fa69232017-01-18 03:05:01 +0000520 node: management
521 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000522 - connection_to_management_host:
523 node: management_host
524 relationship: tosca.relationships.ConnectsToNetwork
525 - connection_to_shared_network:
526 node: shared_network
527 relationship: tosca.relationships.ConnectsToNetwork
JianHao8fa69232017-01-18 03:05:01 +0000528 properties:
529 network: noauto
530
Saleil Bhat9462d932017-01-20 20:09:06 -0800531
532 mysite_vmme_slice1:
533 description: vMME Service Slice 1
534 type: tosca.nodes.Slice
535 requirements:
536 - vMME:
537 node: vMME
538 relationship: tosca.relationships.MemberOfService
539 - site:
540 node: mysite
541 relationship: tosca.relationships.MemberOfSite
542 - default_image:
543 node: trusty-server-multi-nic
544 relationship: tosca.relationships.DefaultImage
545 - default_flavor:
546 node: m1.xlarge
547 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000548 - connection_to_management:
Saleil Bhat9462d932017-01-20 20:09:06 -0800549 node: management
550 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000551 - connection_to_management_host:
552 node: management_host
553 relationship: tosca.relationships.ConnectsToNetwork
554 - connection_to_shared_network:
555 node: shared_network
556 relationship: tosca.relationships.ConnectsToNetwork
Saleil Bhat9462d932017-01-20 20:09:06 -0800557 properties:
558 network: noauto
559
Saleil Bhat9462d932017-01-20 20:09:06 -0800560
561 tenant#vmmetenant1:
562 type: tosca.nodes.VMMETenant
563 properties:
564 tenant_message: just a message
Saleil Bhata9f32372017-01-23 18:48:49 -0800565 image_name: default
Saleil Bhat9462d932017-01-20 20:09:06 -0800566 requirements:
567 - tenant:
568 node: vMME
569 relationship: tosca.relationships.MemberOfService
570 - dependency:
571 node: mysite_vmme_slice1
572 relationship: tosca.relationships.DependsOn
Saleil Bhata9f32372017-01-23 18:48:49 -0800573
574
575 tenant#vmmetenant2:
576 type: tosca.nodes.VMMETenant
577 properties:
578 tenant_message: just a message 2
579 image_name: mcord-vpgwc-onos-multi-nic
580 requirements:
581 - tenant:
582 node: vMME
583 relationship: tosca.relationships.MemberOfService
584 - dependency:
585 node: mysite_vmme_slice1
586 relationship: tosca.relationships.DependsOn
587
588
Pingping Linc5bf2e52016-10-05 01:50:08 +0000589#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800590
591# mysite_VPGWC_Component:
592# description: MCORD Service default Component
593# type: tosca.nodes.VPGWCComponent
594# requirements:
595# - provider_service:
596# node: vPGWC
597# relationship: tosca.relationships.MemberOfService
598# - vpgwc_slice:
599# node: mysite_vpgwc_slice1
600# relationship: tosca.relationships.MemberOfSlice
601# properties:
602# display_message: vPGWC looks good!
603# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000604