blob: 3c817052e5364cf761d2fac7b30bab9c95582871 [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
Pingping Lin0218e892017-05-02 16:30:04 -0700180 tosca.nodes.VPGWCComponent:
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
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 Lin0218e892017-05-02 16:30:04 -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
Pingping Lin0218e892017-05-02 16:30:04 -0700306 cidr: 10.6.0.0/24
307 start_ip: 10.6.0.128
308 end_ip: 10.6.0.254
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000309 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
Pingping Linf90e2c32017-01-29 00:16:34 +0000316 vsg_template:
317 type: tosca.nodes.NetworkTemplate
318 properties:
319 visibility: private
320 translation: none
321 vtn_kind: VSG
322
323 vsg_network:
324 type: tosca.nodes.network.Network
325 properties:
326 ip_version: 4
327 cidr: 101.0.0.0/24
328 requirements:
329 - network_template:
330 node: vsg_template
331 relationship: tosca.relationships.UsesNetworkTemplate
332 - owner:
333 node: mysite_vbbu_slice1
334 relationship: tosca.relationships.MemberOfSlice
335 - connection:
336 node: mysite_vbbu_slice1
337 relationship: tosca.relationships.ConnectsToSlice
338
Pingping Lin0218e892017-05-02 16:30:04 -0700339
Pingping Linf21fa692017-01-25 02:29:54 +0000340# lan_3gpp_s1mme_network:
341# type: tosca.nodes.network.Network.XOS
342# properties:
343# ip_version: 4
344# labels: lan_3gpp_s1uc_net
345# cidr: 172.16.1.0/24
346# start_ip: 172.16.1.3
347# end_ip: 172.16.1.12
348# gateway_ip: 172.16.1.1
349# requirements:
350# - network_template:
351# node: External
352# relationship: tosca.relationships.UsesNetworkTemplate
353# - owner:
354# node: mysite_mobile_net
355# relationship: tosca.relationships.MemberOfSlice
356# - connection:
357# node: mysite_vbbu_slice1
358# relationship: tosca.relationships.ConnectsToSlice
359#
360# lan_3gpp_s1u_network:
361# type: tosca.nodes.network.Network.XOS
362# properties:
363# ip_version: 4
364# labels: lan_3gpp_s1u_net
365# cidr: 172.16.2.0/24
366# start_ip: 172.16.2.3
367# end_ip: 172.16.2.12
368# gateway_ip: 172.16.16.1
369# requirements:
370# - network_template:
371# node: External
372# relationship: tosca.relationships.UsesNetworkTemplate
373# - owner:
374# node: mysite_mobile_net
375# relationship: tosca.relationships.MemberOfSlice
376# - connection:
377# node: mysite_vbbu_slice1
378# relationship: tosca.relationships.ConnectsToSlice
379#
380# lan_rru_network:
381# type: tosca.nodes.network.Network.XOS
382# properties:
383# ip_version: 4
384# labels: lan_rru_net
385# cidr: 172.16.0.0/24
386# start_ip: 172.16.0.3
387# end_ip: 172.16.0.12
388# gateway_ip: 172.16.0.1
389# requirements:
390# - network_template:
391# node: External
392# relationship: tosca.relationships.UsesNetworkTemplate
393# - owner:
394# node: mysite_mobile_net
395# relationship: tosca.relationships.MemberOfSlice
396# - connection:
397# node: mysite_vbbu_slice1
398# relationship: tosca.relationships.ConnectsToSlice
399#
400# lan_3gpp_s5s8_pgw_network:
401# type: tosca.nodes.network.Network.XOS
402# properties:
403# ip_version: 4
404# labels: lan_3gpp_s5s8_pgw_net
405# cidr: 172.17.1.0/24
406# start_ip: 172.17.1.2
407# end_ip: 172.17.1.8
408# gateway_ip: 172.17.1.1
409# requirements:
410# - network_template:
411# node: External
412# relationship: tosca.relationships.UsesNetworkTemplate
413# - owner:
414# node: mysite_mobile_net
415# relationship: tosca.relationships.MemberOfSlice
416# - connection:
417# node: mysite_vpgwc_slice1
418# relationship: tosca.relationships.ConnectsToSlice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000419
Pingping Lin60be9682017-01-20 18:39:00 -0800420 shared_network:
421 type: tosca.nodes.network.Network.XOS
422 properties:
423 ip_version: 4
Pingping Lin3be0aa12017-01-25 23:39:16 +0000424 cidr: 100.0.0.0/24
Pingping Lin60be9682017-01-20 18:39:00 -0800425 requirements:
426 - network_template:
427 node: External
428 relationship: tosca.relationships.UsesNetworkTemplate
429 - owner:
430 node: mysite_mobile_net
431 relationship: tosca.relationships.MemberOfSlice
432 - slice:
433 node: mysite_mobile_net
434 relationship: tosca.relationships.ConnectsToSlice
435
JianHao700f5ec2017-02-08 09:00:05 +0000436 wan_network:
437 type: tosca.nodes.network.Network.XOS
438 properties:
439 ip_version: 4
440 cidr: 102.0.0.0/24
441 requirements:
442 - network_template:
443 node: External
444 relationship: tosca.relationships.UsesNetworkTemplate
445 - owner:
446 node: mysite_mobile_net
447 relationship: tosca.relationships.MemberOfSlice
448 - slice:
449 node: mysite_mobile_net
450 relationship: tosca.relationships.ConnectsToSlice
451
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000452 mysite:
453 type: tosca.nodes.Site
454
Pingping Lin0218e892017-05-02 16:30:04 -0700455# mcord-bbu-multi-nic:
456# type: tosca.nodes.Image
457
458# mcord-vpgwc-onos-multi-nic:
459# type: tosca.nodes.Image
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000460
Pingping Lin4d155ce2016-09-29 21:13:50 +0000461 trusty-server-multi-nic:
462 type: tosca.nodes.Image
463
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000464 mysite_management:
465 description: This slice exists solely to own the management network
466 type: tosca.nodes.Slice
467 properties:
468 network: noauto
469 requirements:
470 - site:
471 node: mysite
472 relationship: tosca.relationships.MemberOfSite
473
474 mysite_mobile_net:
475 description: This slice exists solely to own the mobile network
476 type: tosca.nodes.Slice
477 properties:
478 network: noauto
479 requirements:
480 - site:
481 node: mysite
482 relationship: tosca.relationships.MemberOfSite
483
484 mysite_vbbu_slice1:
485 description: vBBU Service Slice 1
486 type: tosca.nodes.Slice
487 requirements:
488 - vBBU:
489 node: vBBU
490 relationship: tosca.relationships.MemberOfService
491 - site:
492 node: mysite
493 relationship: tosca.relationships.MemberOfSite
494 - default_image:
Saleil Bhat71cb40f2017-02-18 15:43:59 -0800495 node: trusty-server-multi-nic
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000496 relationship: tosca.relationships.DefaultImage
497 - default_flavor:
498 node: m1.xlarge
499 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000500 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000501 node: management
502 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000503 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800504 node: shared_network
505 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin0218e892017-05-02 16:30:04 -0700506 - connection_to_management_host:
507 node: management_host
508 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000509 properties:
510 network: noauto
511# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000512#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000513
514 mysite_vpgwc_slice1:
515 description: vPGWC Service Slice 1
516 type: tosca.nodes.Slice
517 requirements:
518 - vPGWC:
519 node: vPGWC
520 relationship: tosca.relationships.MemberOfService
521 - site:
522 node: mysite
523 relationship: tosca.relationships.MemberOfSite
524 - default_image:
Saleil Bhat71cb40f2017-02-18 15:43:59 -0800525 node: trusty-server-multi-nic
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000526 relationship: tosca.relationships.DefaultImage
527 - default_flavor:
Pingping Lin0218e892017-05-02 16:30:04 -0700528 node: m1.xlarge
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000529 relationship: tosca.relationships.DefaultFlavor
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000530 - connection_to_management:
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000531 node: management
532 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin2fe8efb2017-01-24 05:00:59 +0000533 - connection_to_management_host:
534 node: management_host
535 relationship: tosca.relationships.ConnectsToNetwork
536 - connection_to_shared_network:
Pingping Lin60be9682017-01-20 18:39:00 -0800537 node: shared_network
538 relationship: tosca.relationships.ConnectsToNetwork
JianHao700f5ec2017-02-08 09:00:05 +0000539 - connection_to_wan_network:
540 node: wan_network
541 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000542 properties:
543 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000544
545 mysite_vsgw_slice1:
546 description: vSGW Service Slice 1
547 type: tosca.nodes.Slice
548 requirements:
549 - vSGW:
550 node: vSGW
551 relationship: tosca.relationships.MemberOfService
552 - site:
553 node: mysite
554 relationship: tosca.relationships.MemberOfSite
555 - default_image:
Saleil Bhat71cb40f2017-02-18 15:43:59 -0800556 node: trusty-server-multi-nic
JianHao8fa69232017-01-18 03:05:01 +0000557 relationship: tosca.relationships.DefaultImage
558 - default_flavor:
Pingping Lin0218e892017-05-02 16:30:04 -0700559 node: m1.xlarge
JianHao8fa69232017-01-18 03:05:01 +0000560 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000561 - connection_to_management:
JianHao8fa69232017-01-18 03:05:01 +0000562 node: management
563 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000564 - connection_to_management_host:
565 node: management_host
566 relationship: tosca.relationships.ConnectsToNetwork
567 - connection_to_shared_network:
568 node: shared_network
569 relationship: tosca.relationships.ConnectsToNetwork
JianHao8fa69232017-01-18 03:05:01 +0000570 properties:
571 network: noauto
572
Saleil Bhat9462d932017-01-20 20:09:06 -0800573
574 mysite_vmme_slice1:
575 description: vMME Service Slice 1
576 type: tosca.nodes.Slice
577 requirements:
578 - vMME:
579 node: vMME
580 relationship: tosca.relationships.MemberOfService
581 - site:
582 node: mysite
583 relationship: tosca.relationships.MemberOfSite
584 - default_image:
Saleil Bhat71cb40f2017-02-18 15:43:59 -0800585 node: trusty-server-multi-nic
Saleil Bhat9462d932017-01-20 20:09:06 -0800586 relationship: tosca.relationships.DefaultImage
587 - default_flavor:
Pingping Lin0218e892017-05-02 16:30:04 -0700588 node: m1.xlarge
Saleil Bhat9462d932017-01-20 20:09:06 -0800589 relationship: tosca.relationships.DefaultFlavor
Pingping Lin3be0aa12017-01-25 23:39:16 +0000590 - connection_to_management:
Saleil Bhat9462d932017-01-20 20:09:06 -0800591 node: management
592 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin3be0aa12017-01-25 23:39:16 +0000593 - connection_to_management_host:
594 node: management_host
595 relationship: tosca.relationships.ConnectsToNetwork
596 - connection_to_shared_network:
597 node: shared_network
598 relationship: tosca.relationships.ConnectsToNetwork
Saleil Bhat9462d932017-01-20 20:09:06 -0800599 properties:
600 network: noauto
Saleil Bhata9f32372017-01-23 18:48:49 -0800601
602
Pingping Lin0218e892017-05-02 16:30:04 -0700603# tenant#vmmetenant1:
604# type: tosca.nodes.VMMETenant
605# properties:
606# tenant_message: just a message
607# image_name: default
608# requirements:
609# - tenant:
610# node: vMME
611# relationship: tosca.relationships.MemberOfService
612# - dependency:
613# node: mysite_vmme_slice1
614# relationship: tosca.relationships.DependsOn
Saleil Bhata9f32372017-01-23 18:48:49 -0800615
616
Pingping Lin0218e892017-05-02 16:30:04 -0700617# tenant#vmmetenant2:
618# type: tosca.nodes.VMMETenant
619# properties:
620# tenant_message: just a message 2
621# image_name: mcord-vpgwc-onos-multi-nic
622# requirements:
623# - tenant:
624# node: vMME
625# relationship: tosca.relationships.MemberOfService
626# - dependency:
627# node: mysite_vmme_slice1
628# relationship: tosca.relationships.DependsOn
629
630
631#default_node: compute10
632
633# mysite_VPGWC_Component:
634# description: MCORD Service default Component
635# type: tosca.nodes.VPGWCComponent
636# requirements:
637# - provider_service:
638# node: vPGWC
639# relationship: tosca.relationships.MemberOfService
640# - vpgwc_slice:
641# node: mysite_vpgwc_slice1
642# relationship: tosca.relationships.MemberOfSlice
643# properties:
644# display_message: vPGWC looks good!
645# s5s8_pgw_tag: 300
646