blob: 7b2b37b1747999eb2f7ff8f05d81dd4b8106d5ba [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
121 #VMME tenant node type
122 tosca.nodes.VMMETenant:
123 derived_from: tosca.nodes.Root
124 description: >
125 A Tenant of the VMME Service
126 properties:
127 kind:
128 type: string
129 default: vEPC
130 description: Kind of tenant
131 service_specific_id:
132 type: string
133 required: false
134 description: Service specific ID opaque to XOS but meaningful to service
135 s1mme_tag:
136 type: string
137 required: false
138 default: 600 #chosen at random
139 description: VTN stag port-name
140 tenant_message:
141 type: string
142 required: false
143 default: New vMME Tenant
144 description: Just a message
145
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000146 tosca.nodes.VBBUComponent:
147 derived_from: tosca.nodes.Root
148 description: >
149 CORD: vBBU Component of MCORD Service.
150 properties:
151 kind:
152 type: string
153 default: RAN
154 description: Kind of component
155 s1u_tag:
156 type: string
157 required: false
158 default: 901
159 description: VTN stag port-name
160 s1mme_tag:
161 type: string
162 required: false
163 default: 900
164 description: VTN stag port-name
165 rru_tag:
166 type: string
167 required: false
168 default: 999
169 description: VTN stag port-name
170 display_message:
171 type: string
172 required: false
173 default: New vBBU Component
174 description: Just a message
175
176 tosca.nodes.VPGWCComponent:
177 derived_from: tosca.nodes.Root
178 description: >
179 CORD: vPGWC Component of MCORD Service.
180 properties:
181 kind:
182 type: string
183 default: VPGWC_KIND
184 description: Kind of component
185 s5s8_pgw_tag:
186 type: string
187 required: false
188 default: 300
189 description: VTN stag port-name
190 display_message:
191 type: string
192 required: false
193 default: New vPGWc Component
194 description: Just a message
195
JianHao8fa69232017-01-18 03:05:01 +0000196 tosca.nodes.VSGWTenant:
197 derived_from: tosca.nodes.Root
198 description: >
199 A Tenant of the VSGW Service
200 properties:
201 kind:
202 type: string
203 default: generic
204 description: Kind of tenant
205 service_specific_id:
206 type: string
207 required: false
208 description: Service specific ID opaque to XOS but meaningful to service
209 tenant_message:
210 type: string
211 required: false
212 default: New vSGW Tenant
213 description: Just a message
214
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000215topology_template:
216 node_templates:
217 vBBU:
218 type: tosca.nodes.MCORDService
219 requirements:
220 properties:
221 kind: RAN
222 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700223 view_url: /admin/vbbu/vbbucomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000224 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000225 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000226 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000227 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000228
229 vPGWC:
230 type: tosca.nodes.MCORDService
231 requirements:
232 properties:
233 kind: vEPC
234 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700235 view_url: /admin/vpgwc/vpgwccomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000236 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lin97c12612016-09-19 23:40:53 +0000237 private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000238 artifacts:
Pingping Lin97c12612016-09-19 23:40:53 +0000239 pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000240
JianHao8fa69232017-01-18 03:05:01 +0000241 vSGW:
242 type: tosca.nodes.MCORDService
243 requirements:
244 properties:
245 kind: vEPC
246 icon_url: /static/mCordServices/service_server.png
247 view_url: /admin/vsgw/vsgwtenant
248 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
249 private_key_fn: /opt/xos/services/vsgw/keys/vSGW_rsa
250 artifacts:
251 pubkey: /opt/xos/services/vsgw/keys/vSGW_rsa.pub
252
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000253 m1.xlarge:
254 type: tosca.nodes.Flavor
255
256 Private:
257 type: tosca.nodes.NetworkTemplate
258
259 External:
260 type: tosca.nodes.NetworkTemplate
261
262 management_template:
263 type: tosca.nodes.NetworkTemplate
264 properties:
265 visibility: private
266 translation: none
267
268 management:
269 type: tosca.nodes.network.Network.XOS
270# properties:
271# no-create: true
272# no-delete: true
273# no-update: true
274
275 lan_3gpp_s1mme_network:
276 type: tosca.nodes.network.Network.XOS
277 properties:
278 ip_version: 4
279 labels: lan_3gpp_s1uc_net
280 cidr: 172.16.1.0/24
281 start_ip: 172.16.1.3
282 end_ip: 172.16.1.12
283 gateway_ip: 172.16.1.1
284 requirements:
285 - network_template:
286 node: External
287 relationship: tosca.relationships.UsesNetworkTemplate
288 - owner:
289 node: mysite_mobile_net
290 relationship: tosca.relationships.MemberOfSlice
291 - connection:
292 node: mysite_vbbu_slice1
293 relationship: tosca.relationships.ConnectsToSlice
294
295 lan_3gpp_s1u_network:
296 type: tosca.nodes.network.Network.XOS
297 properties:
298 ip_version: 4
299 labels: lan_3gpp_s1u_net
300 cidr: 172.16.2.0/24
301 start_ip: 172.16.2.3
302 end_ip: 172.16.2.12
303 gateway_ip: 172.16.16.1
304 requirements:
305 - network_template:
306 node: External
307 relationship: tosca.relationships.UsesNetworkTemplate
308 - owner:
309 node: mysite_mobile_net
310 relationship: tosca.relationships.MemberOfSlice
311 - connection:
312 node: mysite_vbbu_slice1
313 relationship: tosca.relationships.ConnectsToSlice
314
315 lan_rru_network:
316 type: tosca.nodes.network.Network.XOS
317 properties:
318 ip_version: 4
319 labels: lan_rru_net
320 cidr: 172.16.0.0/24
321 start_ip: 172.16.0.3
322 end_ip: 172.16.0.12
323 gateway_ip: 172.16.0.1
324 requirements:
325 - network_template:
326 node: External
327 relationship: tosca.relationships.UsesNetworkTemplate
328 - owner:
329 node: mysite_mobile_net
330 relationship: tosca.relationships.MemberOfSlice
331 - connection:
332 node: mysite_vbbu_slice1
333 relationship: tosca.relationships.ConnectsToSlice
334
335 lan_3gpp_s5s8_pgw_network:
336 type: tosca.nodes.network.Network.XOS
337 properties:
338 ip_version: 4
339 labels: lan_3gpp_s5s8_pgw_net
340 cidr: 172.17.1.0/24
341 start_ip: 172.17.1.2
342 end_ip: 172.17.1.8
343 gateway_ip: 172.17.1.1
344 requirements:
345 - network_template:
346 node: External
347 relationship: tosca.relationships.UsesNetworkTemplate
348 - owner:
349 node: mysite_mobile_net
350 relationship: tosca.relationships.MemberOfSlice
351 - connection:
352 node: mysite_vpgwc_slice1
353 relationship: tosca.relationships.ConnectsToSlice
354
Pingping Lin60be9682017-01-20 18:39:00 -0800355 shared_network:
356 type: tosca.nodes.network.Network.XOS
357 properties:
358 ip_version: 4
359 cidr: 172.17.8.0/24
360 requirements:
361 - network_template:
362 node: External
363 relationship: tosca.relationships.UsesNetworkTemplate
364 - owner:
365 node: mysite_mobile_net
366 relationship: tosca.relationships.MemberOfSlice
367 - slice:
368 node: mysite_mobile_net
369 relationship: tosca.relationships.ConnectsToSlice
370
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000371 mysite:
372 type: tosca.nodes.Site
373
374 mcord-bbu-multi-nic:
375 type: tosca.nodes.Image
376
377 mcord-vpgwc-onos-multi-nic:
378 type: tosca.nodes.Image
379
Pingping Lin4d155ce2016-09-29 21:13:50 +0000380 trusty-server-multi-nic:
381 type: tosca.nodes.Image
382
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000383 mysite_management:
384 description: This slice exists solely to own the management network
385 type: tosca.nodes.Slice
386 properties:
387 network: noauto
388 requirements:
389 - site:
390 node: mysite
391 relationship: tosca.relationships.MemberOfSite
392
393 mysite_mobile_net:
394 description: This slice exists solely to own the mobile network
395 type: tosca.nodes.Slice
396 properties:
397 network: noauto
398 requirements:
399 - site:
400 node: mysite
401 relationship: tosca.relationships.MemberOfSite
402
403 mysite_vbbu_slice1:
404 description: vBBU Service Slice 1
405 type: tosca.nodes.Slice
406 requirements:
407 - vBBU:
408 node: vBBU
409 relationship: tosca.relationships.MemberOfService
410 - site:
411 node: mysite
412 relationship: tosca.relationships.MemberOfSite
413 - default_image:
414 node: mcord-bbu-multi-nic
415 relationship: tosca.relationships.DefaultImage
416 - default_flavor:
417 node: m1.xlarge
418 relationship: tosca.relationships.DefaultFlavor
419 - management:
420 node: management
421 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin60be9682017-01-20 18:39:00 -0800422 - connection:
423 node: shared_network
424 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000425 properties:
426 network: noauto
427# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000428#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000429
430 mysite_vpgwc_slice1:
431 description: vPGWC Service Slice 1
432 type: tosca.nodes.Slice
433 requirements:
434 - vPGWC:
435 node: vPGWC
436 relationship: tosca.relationships.MemberOfService
437 - site:
438 node: mysite
439 relationship: tosca.relationships.MemberOfSite
440 - default_image:
441 node: mcord-vpgwc-onos-multi-nic
442 relationship: tosca.relationships.DefaultImage
443 - default_flavor:
444 node: m1.xlarge
445 relationship: tosca.relationships.DefaultFlavor
446 - management:
447 node: management
448 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin60be9682017-01-20 18:39:00 -0800449 - connection:
450 node: shared_network
451 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000452 properties:
453 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000454
455 mysite_vsgw_slice1:
456 description: vSGW Service Slice 1
457 type: tosca.nodes.Slice
458 requirements:
459 - vSGW:
460 node: vSGW
461 relationship: tosca.relationships.MemberOfService
462 - site:
463 node: mysite
464 relationship: tosca.relationships.MemberOfSite
465 - default_image:
466 node: trusty-server-multi-nic
467 relationship: tosca.relationships.DefaultImage
468 - default_flavor:
469 node: m1.xlarge
470 relationship: tosca.relationships.DefaultFlavor
471 - management:
472 node: management
473 relationship: tosca.relationships.ConnectsToNetwork
474 properties:
475 network: noauto
476
Saleil Bhat9462d932017-01-20 20:09:06 -0800477
478 mysite_vmme_slice1:
479 description: vMME Service Slice 1
480 type: tosca.nodes.Slice
481 requirements:
482 - vMME:
483 node: vMME
484 relationship: tosca.relationships.MemberOfService
485 - site:
486 node: mysite
487 relationship: tosca.relationships.MemberOfSite
488 - default_image:
489 node: trusty-server-multi-nic
490 relationship: tosca.relationships.DefaultImage
491 - default_flavor:
492 node: m1.xlarge
493 relationship: tosca.relationships.DefaultFlavor
494 - management:
495 node: management
496 relationship: tosca.relationships.ConnectsToNetwork
497 properties:
498 network: noauto
499
500 #vMME node type
501 vMME:
502 type: tosca.nodes.VMMEService
503 requirements:
504 - management:
505 node: management
506 relationship: tosca.relationships.UsesNetwork
507 properties:
508 kind: vEPC
509 icon_url: /static/mCordServices/service_server.png
510 view_url: /admin/vmme/vmmetenant
511 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
512 private_key_fn: /opt/xos/services/vmme/keys/vMME_rsa
513 artifacts:
514 pubkey: /opt/xos/services/vmme/keys/vMME_rsa.pub
515
516 tenant#vmmetenant1:
517 type: tosca.nodes.VMMETenant
518 properties:
519 tenant_message: just a message
520 requirements:
521 - tenant:
522 node: vMME
523 relationship: tosca.relationships.MemberOfService
524 - dependency:
525 node: mysite_vmme_slice1
526 relationship: tosca.relationships.DependsOn
Pingping Linc5bf2e52016-10-05 01:50:08 +0000527#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800528
529# mysite_VPGWC_Component:
530# description: MCORD Service default Component
531# type: tosca.nodes.VPGWCComponent
532# requirements:
533# - provider_service:
534# node: vPGWC
535# relationship: tosca.relationships.MemberOfService
536# - vpgwc_slice:
537# node: mysite_vpgwc_slice1
538# relationship: tosca.relationships.MemberOfSlice
539# properties:
540# display_message: vPGWC looks good!
541# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000542