blob: 481e693c0450cbc5fdfba1681eb985b8eb06c344 [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
65 tosca.nodes.VBBUComponent:
66 derived_from: tosca.nodes.Root
67 description: >
68 CORD: vBBU Component of MCORD Service.
69 properties:
70 kind:
71 type: string
72 default: RAN
73 description: Kind of component
74 s1u_tag:
75 type: string
76 required: false
77 default: 901
78 description: VTN stag port-name
79 s1mme_tag:
80 type: string
81 required: false
82 default: 900
83 description: VTN stag port-name
84 rru_tag:
85 type: string
86 required: false
87 default: 999
88 description: VTN stag port-name
89 display_message:
90 type: string
91 required: false
92 default: New vBBU Component
93 description: Just a message
94
95 tosca.nodes.VPGWCComponent:
96 derived_from: tosca.nodes.Root
97 description: >
98 CORD: vPGWC Component of MCORD Service.
99 properties:
100 kind:
101 type: string
102 default: VPGWC_KIND
103 description: Kind of component
104 s5s8_pgw_tag:
105 type: string
106 required: false
107 default: 300
108 description: VTN stag port-name
109 display_message:
110 type: string
111 required: false
112 default: New vPGWc Component
113 description: Just a message
114
JianHaoac754372017-01-18 03:05:01 +0000115 tosca.nodes.VSGWTenant:
116 derived_from: tosca.nodes.Root
117 description: >
118 A Tenant of the VSGW Service
119 properties:
120 kind:
121 type: string
122 default: generic
123 description: Kind of tenant
124 service_specific_id:
125 type: string
126 required: false
127 description: Service specific ID opaque to XOS but meaningful to service
128 tenant_message:
129 type: string
130 required: false
131 default: New vSGW Tenant
132 description: Just a message
133
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000134topology_template:
135 node_templates:
136 vBBU:
137 type: tosca.nodes.MCORDService
138 requirements:
139 properties:
140 kind: RAN
141 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700142 view_url: /admin/vbbu/vbbucomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000143 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000144 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000145 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000146 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000147
148 vPGWC:
149 type: tosca.nodes.MCORDService
150 requirements:
151 properties:
152 kind: vEPC
153 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700154 view_url: /admin/vpgwc/vpgwccomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000155 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lin97c12612016-09-19 23:40:53 +0000156 private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000157 artifacts:
Pingping Lin97c12612016-09-19 23:40:53 +0000158 pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000159
JianHaoac754372017-01-18 03:05:01 +0000160 vSGW:
161 type: tosca.nodes.MCORDService
162 requirements:
163 properties:
164 kind: vEPC
165 icon_url: /static/mCordServices/service_server.png
166 view_url: /admin/vsgw/vsgwtenant
167 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
168 private_key_fn: /opt/xos/services/vsgw/keys/vSGW_rsa
169 artifacts:
170 pubkey: /opt/xos/services/vsgw/keys/vSGW_rsa.pub
171
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000172 m1.xlarge:
173 type: tosca.nodes.Flavor
174
175 Private:
176 type: tosca.nodes.NetworkTemplate
177
178 External:
179 type: tosca.nodes.NetworkTemplate
180
181 management_template:
182 type: tosca.nodes.NetworkTemplate
183 properties:
184 visibility: private
185 translation: none
186
187 management:
188 type: tosca.nodes.network.Network.XOS
189# properties:
190# no-create: true
191# no-delete: true
192# no-update: true
193
194 lan_3gpp_s1mme_network:
195 type: tosca.nodes.network.Network.XOS
196 properties:
197 ip_version: 4
198 labels: lan_3gpp_s1uc_net
199 cidr: 172.16.1.0/24
200 start_ip: 172.16.1.3
201 end_ip: 172.16.1.12
202 gateway_ip: 172.16.1.1
203 requirements:
204 - network_template:
205 node: External
206 relationship: tosca.relationships.UsesNetworkTemplate
207 - owner:
208 node: mysite_mobile_net
209 relationship: tosca.relationships.MemberOfSlice
210 - connection:
211 node: mysite_vbbu_slice1
212 relationship: tosca.relationships.ConnectsToSlice
213
214 lan_3gpp_s1u_network:
215 type: tosca.nodes.network.Network.XOS
216 properties:
217 ip_version: 4
218 labels: lan_3gpp_s1u_net
219 cidr: 172.16.2.0/24
220 start_ip: 172.16.2.3
221 end_ip: 172.16.2.12
222 gateway_ip: 172.16.16.1
223 requirements:
224 - network_template:
225 node: External
226 relationship: tosca.relationships.UsesNetworkTemplate
227 - owner:
228 node: mysite_mobile_net
229 relationship: tosca.relationships.MemberOfSlice
230 - connection:
231 node: mysite_vbbu_slice1
232 relationship: tosca.relationships.ConnectsToSlice
233
234 lan_rru_network:
235 type: tosca.nodes.network.Network.XOS
236 properties:
237 ip_version: 4
238 labels: lan_rru_net
239 cidr: 172.16.0.0/24
240 start_ip: 172.16.0.3
241 end_ip: 172.16.0.12
242 gateway_ip: 172.16.0.1
243 requirements:
244 - network_template:
245 node: External
246 relationship: tosca.relationships.UsesNetworkTemplate
247 - owner:
248 node: mysite_mobile_net
249 relationship: tosca.relationships.MemberOfSlice
250 - connection:
251 node: mysite_vbbu_slice1
252 relationship: tosca.relationships.ConnectsToSlice
253
254 lan_3gpp_s5s8_pgw_network:
255 type: tosca.nodes.network.Network.XOS
256 properties:
257 ip_version: 4
258 labels: lan_3gpp_s5s8_pgw_net
259 cidr: 172.17.1.0/24
260 start_ip: 172.17.1.2
261 end_ip: 172.17.1.8
262 gateway_ip: 172.17.1.1
263 requirements:
264 - network_template:
265 node: External
266 relationship: tosca.relationships.UsesNetworkTemplate
267 - owner:
268 node: mysite_mobile_net
269 relationship: tosca.relationships.MemberOfSlice
270 - connection:
271 node: mysite_vpgwc_slice1
272 relationship: tosca.relationships.ConnectsToSlice
273
Pingping Lin321a3da2017-01-20 18:39:00 -0800274 shared_network:
275 type: tosca.nodes.network.Network.XOS
276 properties:
277 ip_version: 4
278 cidr: 172.17.8.0/24
279 requirements:
280 - network_template:
281 node: External
282 relationship: tosca.relationships.UsesNetworkTemplate
283 - owner:
284 node: mysite_mobile_net
285 relationship: tosca.relationships.MemberOfSlice
286 - slice:
287 node: mysite_mobile_net
288 relationship: tosca.relationships.ConnectsToSlice
289
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000290 mysite:
291 type: tosca.nodes.Site
292
293 mcord-bbu-multi-nic:
294 type: tosca.nodes.Image
295
296 mcord-vpgwc-onos-multi-nic:
297 type: tosca.nodes.Image
298
Pingping Lin4d155ce2016-09-29 21:13:50 +0000299 trusty-server-multi-nic:
300 type: tosca.nodes.Image
301
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000302 mysite_management:
303 description: This slice exists solely to own the management network
304 type: tosca.nodes.Slice
305 properties:
306 network: noauto
307 requirements:
308 - site:
309 node: mysite
310 relationship: tosca.relationships.MemberOfSite
311
312 mysite_mobile_net:
313 description: This slice exists solely to own the mobile network
314 type: tosca.nodes.Slice
315 properties:
316 network: noauto
317 requirements:
318 - site:
319 node: mysite
320 relationship: tosca.relationships.MemberOfSite
321
322 mysite_vbbu_slice1:
323 description: vBBU Service Slice 1
324 type: tosca.nodes.Slice
325 requirements:
326 - vBBU:
327 node: vBBU
328 relationship: tosca.relationships.MemberOfService
329 - site:
330 node: mysite
331 relationship: tosca.relationships.MemberOfSite
332 - default_image:
333 node: mcord-bbu-multi-nic
334 relationship: tosca.relationships.DefaultImage
335 - default_flavor:
336 node: m1.xlarge
337 relationship: tosca.relationships.DefaultFlavor
338 - management:
339 node: management
340 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin321a3da2017-01-20 18:39:00 -0800341 - connection:
342 node: shared_network
343 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000344 properties:
345 network: noauto
346# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000347#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000348
349 mysite_vpgwc_slice1:
350 description: vPGWC Service Slice 1
351 type: tosca.nodes.Slice
352 requirements:
353 - vPGWC:
354 node: vPGWC
355 relationship: tosca.relationships.MemberOfService
356 - site:
357 node: mysite
358 relationship: tosca.relationships.MemberOfSite
359 - default_image:
360 node: mcord-vpgwc-onos-multi-nic
361 relationship: tosca.relationships.DefaultImage
362 - default_flavor:
363 node: m1.xlarge
364 relationship: tosca.relationships.DefaultFlavor
365 - management:
366 node: management
367 relationship: tosca.relationships.ConnectsToNetwork
Pingping Lin321a3da2017-01-20 18:39:00 -0800368 - connection:
369 node: shared_network
370 relationship: tosca.relationships.ConnectsToNetwork
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000371 properties:
372 network: noauto
JianHaoac754372017-01-18 03:05:01 +0000373
374 mysite_vsgw_slice1:
375 description: vSGW Service Slice 1
376 type: tosca.nodes.Slice
377 requirements:
378 - vSGW:
379 node: vSGW
380 relationship: tosca.relationships.MemberOfService
381 - site:
382 node: mysite
383 relationship: tosca.relationships.MemberOfSite
384 - default_image:
385 node: trusty-server-multi-nic
386 relationship: tosca.relationships.DefaultImage
387 - default_flavor:
388 node: m1.xlarge
389 relationship: tosca.relationships.DefaultFlavor
390 - management:
391 node: management
392 relationship: tosca.relationships.ConnectsToNetwork
393 properties:
394 network: noauto
395
Pingping Linc5bf2e52016-10-05 01:50:08 +0000396#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800397
398# mysite_VPGWC_Component:
399# description: MCORD Service default Component
400# type: tosca.nodes.VPGWCComponent
401# requirements:
402# - provider_service:
403# node: vPGWC
404# relationship: tosca.relationships.MemberOfService
405# - vpgwc_slice:
406# node: mysite_vpgwc_slice1
407# relationship: tosca.relationships.MemberOfSlice
408# properties:
409# display_message: vPGWC looks good!
410# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000411