blob: 0e0b8d4140b6119b298f710e4be42eff5194daa1 [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
JianHao8fa69232017-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
JianHao8fa69232017-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
274 mysite:
275 type: tosca.nodes.Site
276
277 mcord-bbu-multi-nic:
278 type: tosca.nodes.Image
279
280 mcord-vpgwc-onos-multi-nic:
281 type: tosca.nodes.Image
282
Pingping Lin4d155ce2016-09-29 21:13:50 +0000283 trusty-server-multi-nic:
284 type: tosca.nodes.Image
285
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000286 mysite_management:
287 description: This slice exists solely to own the management network
288 type: tosca.nodes.Slice
289 properties:
290 network: noauto
291 requirements:
292 - site:
293 node: mysite
294 relationship: tosca.relationships.MemberOfSite
295
296 mysite_mobile_net:
297 description: This slice exists solely to own the mobile network
298 type: tosca.nodes.Slice
299 properties:
300 network: noauto
301 requirements:
302 - site:
303 node: mysite
304 relationship: tosca.relationships.MemberOfSite
305
306 mysite_vbbu_slice1:
307 description: vBBU Service Slice 1
308 type: tosca.nodes.Slice
309 requirements:
310 - vBBU:
311 node: vBBU
312 relationship: tosca.relationships.MemberOfService
313 - site:
314 node: mysite
315 relationship: tosca.relationships.MemberOfSite
316 - default_image:
317 node: mcord-bbu-multi-nic
318 relationship: tosca.relationships.DefaultImage
319 - default_flavor:
320 node: m1.xlarge
321 relationship: tosca.relationships.DefaultFlavor
322 - management:
323 node: management
324 relationship: tosca.relationships.ConnectsToNetwork
325 properties:
326 network: noauto
327# default_flavor: m1.xlarge
Pingping Linc5bf2e52016-10-05 01:50:08 +0000328#default_node: computeBBU2
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000329
330 mysite_vpgwc_slice1:
331 description: vPGWC Service Slice 1
332 type: tosca.nodes.Slice
333 requirements:
334 - vPGWC:
335 node: vPGWC
336 relationship: tosca.relationships.MemberOfService
337 - site:
338 node: mysite
339 relationship: tosca.relationships.MemberOfSite
340 - default_image:
341 node: mcord-vpgwc-onos-multi-nic
342 relationship: tosca.relationships.DefaultImage
343 - default_flavor:
344 node: m1.xlarge
345 relationship: tosca.relationships.DefaultFlavor
346 - management:
347 node: management
348 relationship: tosca.relationships.ConnectsToNetwork
349 properties:
350 network: noauto
JianHao8fa69232017-01-18 03:05:01 +0000351
352 mysite_vsgw_slice1:
353 description: vSGW Service Slice 1
354 type: tosca.nodes.Slice
355 requirements:
356 - vSGW:
357 node: vSGW
358 relationship: tosca.relationships.MemberOfService
359 - site:
360 node: mysite
361 relationship: tosca.relationships.MemberOfSite
362 - default_image:
363 node: trusty-server-multi-nic
364 relationship: tosca.relationships.DefaultImage
365 - default_flavor:
366 node: m1.xlarge
367 relationship: tosca.relationships.DefaultFlavor
368 - management:
369 node: management
370 relationship: tosca.relationships.ConnectsToNetwork
371 properties:
372 network: noauto
373
Pingping Linc5bf2e52016-10-05 01:50:08 +0000374#default_node: compute10
Pingping Lind4757fc2016-11-09 16:20:17 -0800375
376# mysite_VPGWC_Component:
377# description: MCORD Service default Component
378# type: tosca.nodes.VPGWCComponent
379# requirements:
380# - provider_service:
381# node: vPGWC
382# relationship: tosca.relationships.MemberOfService
383# - vpgwc_slice:
384# node: mysite_vpgwc_slice1
385# relationship: tosca.relationships.MemberOfSlice
386# properties:
387# display_message: vPGWC looks good!
388# s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000389