blob: 52d083095d8589a6c2365699a010bed8aa49d146 [file] [log] [blame]
mcordbef65082017-05-24 16:05:07 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: created by platform-install, need to add M-CORD services later
4
5imports:
6 - custom_types/xos.yaml
Pingping Lin839ca032017-07-13 19:51:58 -07007 - custom_types/vmme.yaml
Yunpeng Zhang391428a2017-07-15 15:23:47 -04008 - custom_types/vbbu.yaml
Yunpeng Zhang45847142017-07-19 00:53:27 -04009 - custom_types/vsgw.yaml
Omar Abdelkaderb5863db2017-07-24 10:20:51 -070010 - custom_types/vhss.yaml
11 - custom_types/vpgwc.yaml
Yunpeng Zhangecb6feb2017-08-03 18:55:07 -040012 - custom_types/vmm.yaml
13 - custom_types/vsm.yaml
Omar Abdelkader525bbce2017-07-17 11:09:25 -060014
mcordbef65082017-05-24 16:05:07 -070015topology_template:
16 node_templates:
17
18# site, image, fully created in deployment.yaml
19 {{ site_name }}:
20 type: tosca.nodes.Site
Pingping Linb3e8ded2017-07-25 14:54:24 -070021 m1.small:
22 type: tosca.nodes.Flavor
23 m1.large:
24 type: tosca.nodes.Flavor
25 m1.medium:
26 type: tosca.nodes.Flavor
27 m1.xlarge:
28 type: tosca.nodes.Flavor
mcordbef65082017-05-24 16:05:07 -070029
Omar Abdelkader33468932017-08-03 14:43:33 -070030 trusty-server-multi-nic:
mcordbef65082017-05-24 16:05:07 -070031 type: tosca.nodes.Image
Omar Abdelkader33468932017-08-03 14:43:33 -070032 #image#vsg-1.1:
33 # type: tosca.nodes.Image
mcordbef65082017-05-24 16:05:07 -070034
Pingping Linb3e8ded2017-07-25 14:54:24 -070035
mcordbef65082017-05-24 16:05:07 -070036# management networks, fully created in management-net.yaml
37 management:
38 type: tosca.nodes.network.Network.XOS
39 properties:
40 no-create: true
41 no-delete: true
42 no-update: true
43
44{% if use_management_hosts %}
45 management_hosts:
46 type: tosca.nodes.network.Network.XOS
47 properties:
48 no-create: true
49 no-delete: true
50 no-update: true
51{% endif %}
52
Pingping Linb3e8ded2017-07-25 14:54:24 -070053# shared_network is for connectivity between VMs, fully created in shared-net.yaml
54 shared_network:
55 type: tosca.nodes.network.Network.XOS
56 properties:
57 no-create: true
58 no-delete: true
59 no-update: true
60# wan_network for vPGWD and its upstream connectivity, fully created in wan-net.yaml
61 wan_network:
62 type: tosca.nodes.network.Network.XOS
63 properties:
64 no-create: true
65 no-delete: true
66 no-update: true
67# VLAN networks for RRH and vBBU, fully created in vsg-net.yaml
68 vsg_network:
69 type: tosca.nodes.network.Network.XOS
70 properties:
71 no-create: true
72 no-delete: true
73 no-update: true
74
mcordbef65082017-05-24 16:05:07 -070075# ONOS_CORD, fully created in vtn.yaml
76 service#ONOS_CORD:
77 type: tosca.nodes.ONOSService
78 properties:
79 no-delete: true
80 no-create: true
81 no-update: true
82
83# ONOS_Fabric, fully created in fabric.yaml
84 service#ONOS_Fabric:
85 type: tosca.nodes.ONOSService
86 properties:
87 no-delete: true
88 no-create: true
89 no-update: true
90
Pingping Linb3e8ded2017-07-25 14:54:24 -070091# CORD Services
Pingping Lin839ca032017-07-13 19:51:58 -070092 service#vmme:
93 type: tosca.nodes.VMMEService
94 properties:
95 view_url: /admin/vmme/vmmeservice/$id$/
96 kind: vEPC
angelos mimidis2ee52932017-08-01 22:59:59 +020097 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
98 private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa
99 artifacts:
100 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
Yunpeng Zhang391428a2017-07-15 15:23:47 -0400101
102 service#vbbu:
103 type: tosca.nodes.VBBUService
104 properties:
105 view_url: /admin/vbbu/vbbuservice/$id$/
Omar Abdelkaderb5863db2017-07-24 10:20:51 -0700106 kind: vRAN
angelos mimidis2ee52932017-08-01 22:59:59 +0200107 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
108 private_key_fn: /opt/xos/services/vbbu/keys/mcord_rsa
109 artifacts:
110 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
111
Omar Abdelkaderb5863db2017-07-24 10:20:51 -0700112 service#vpgwc:
113 type: tosca.nodes.VPGWCService
114 properties:
115 view_url: /admin/vpgwc/vpgwcservice/$id$/
116 kind: vEPC
angelos mimidis2ee52932017-08-01 22:59:59 +0200117 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
118 private_key_fn: /opt/xos/services/vpgwc/keys/mcord_rsa
119 artifacts:
120 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
121
Yunpeng Zhang45847142017-07-19 00:53:27 -0400122 service#vsgw:
123 type: tosca.nodes.VSGWService
Omar Abdelkader525bbce2017-07-17 11:09:25 -0600124 properties:
Yunpeng Zhang45847142017-07-19 00:53:27 -0400125 view_url: /admin/vsgw/vsgwservice/$id$/
Omar Abdelkader525bbce2017-07-17 11:09:25 -0600126 kind: vEPC
angelos mimidis2ee52932017-08-01 22:59:59 +0200127 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
128 private_key_fn: /opt/xos/services/vsgw/keys/mcord_rsa
129 artifacts:
130 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
131
Omar Abdelkaderb5863db2017-07-24 10:20:51 -0700132 service#vhss:
133 type: tosca.nodes.VHSSService
134 properties:
135 view_url: /admin/vhss/vhssservice/$id$/
136 kind: vEPC
angelos mimidis2ee52932017-08-01 22:59:59 +0200137 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
138 private_key_fn: /opt/xos/services/vhss/keys/mcord_rsa
139 artifacts:
140 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
141
Yunpeng Zhangecb6feb2017-08-03 18:55:07 -0400142 service#vmm:
143 type: tosca.nodes.VMMService
144 properties:
145 view_url: /admin/vmm/vmmservice/$id$/
146 kind: vEPC
147 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
148 private_key_fn: /opt/xos/services/vmm/keys/mcord_rsa
149 artifacts:
150 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
151
152 service#vsm:
153 type: tosca.nodes.VSMService
154 properties:
155 view_url: /admin/vsm/vsmservice/$id$/
156 kind: vEPC
157 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
158 private_key_fn: /opt/xos/services/vsm/keys/mcord_rsa
159 artifacts:
160 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
161
Pingping Linb3e8ded2017-07-25 14:54:24 -0700162# CORD Slices
163 mysite_vBBU_slice:
164 description: vBBU Service Slice
165 type: tosca.nodes.Slice
166 properties:
167 network: noauto
168 requirements:
169 - site:
170 node: mysite
171 relationship: tosca.relationships.MemberOfSite
172 - vBBU:
173 node: service#vbbu
174 relationship: tosca.relationships.MemberOfService
Omar Abdelkader33468932017-08-03 14:43:33 -0700175 - default_image:
176 node: trusty-server-multi-nic
177 relationship: tosca.relationships.DefaultImage
Pingping Linb3e8ded2017-07-25 14:54:24 -0700178 - default_flavor:
179 node: m1.xlarge
180 relationship: tosca.relationships.DefaultFlavor
181 - connection_to_management:
182 node: management
183 relationship: tosca.relationships.ConnectsToNetwork
184 - connection_to_shared_network:
185 node: shared_network
186 relationship: tosca.relationships.ConnectsToNetwork
187
188 # TODO: uncomment this on full pod
189 #- connection_to_management_host:
190 # node: management_host
191 # relationship: tosca.relationships.ConnectsToNetwork
192
193 mysite_vMME_slice:
194 description: vMME Service Slice
195 type: tosca.nodes.Slice
196 properties:
197 network: noauto
198 requirements:
199 - site:
200 node: mysite
201 relationship: tosca.relationships.MemberOfSite
202 - vMME:
203 node: service#vmme
204 relationship: tosca.relationships.MemberOfService
Omar Abdelkader33468932017-08-03 14:43:33 -0700205 - default_image:
206 node: trusty-server-multi-nic
207 relationship: tosca.relationships.DefaultImage
Pingping Linb3e8ded2017-07-25 14:54:24 -0700208 - default_flavor:
209 node: m1.small
210 relationship: tosca.relationships.DefaultFlavor
211 - connection_to_management:
212 node: management
213 relationship: tosca.relationships.ConnectsToNetwork
214 - connection_to_shared_network:
215 node: shared_network
216 relationship: tosca.relationships.ConnectsToNetwork
217
218 mysite_vHSS_slice:
219 description: vHSS Service Slice
220 type: tosca.nodes.Slice
221 properties:
222 network: noauto
223 requirements:
224 - site:
225 node: mysite
226 relationship: tosca.relationships.MemberOfSite
227 - vHSS:
228 node: service#vhss
229 relationship: tosca.relationships.MemberOfService
Omar Abdelkader33468932017-08-03 14:43:33 -0700230 - default_image:
231 node: trusty-server-multi-nic
232 relationship: tosca.relationships.DefaultImage
Pingping Linb3e8ded2017-07-25 14:54:24 -0700233 - default_flavor:
234 node: m1.small
235 relationship: tosca.relationships.DefaultFlavor
236 - connection_to_management:
237 node: management
238 relationship: tosca.relationships.ConnectsToNetwork
239 - connection_to_shared_network:
240 node: shared_network
241 relationship: tosca.relationships.ConnectsToNetwork
242 - connection_to_wan_network:
243 node: wan_network
244 relationship: tosca.relationships.ConnectsToNetwork
245
246 mysite_vSGW_slice:
247 description: vSGW Service Slice
248 type: tosca.nodes.Slice
249 properties:
250 network: noauto
251 requirements:
252 - site:
253 node: mysite
254 relationship: tosca.relationships.MemberOfSite
255 - vSGW:
256 node: service#vsgw
257 relationship: tosca.relationships.MemberOfService
Omar Abdelkader33468932017-08-03 14:43:33 -0700258 - default_image:
259 node: trusty-server-multi-nic
260 relationship: tosca.relationships.DefaultImage
Pingping Linb3e8ded2017-07-25 14:54:24 -0700261 - default_flavor:
262 node: m1.small
263 relationship: tosca.relationships.DefaultFlavor
264 - connection_to_management:
265 node: management
266 relationship: tosca.relationships.ConnectsToNetwork
267 - connection_to_shared_network:
268 node: shared_network
269 relationship: tosca.relationships.ConnectsToNetwork
270
271 mysite_vPGWC_slice:
272 description: vPGWC Service Slice
273 type: tosca.nodes.Slice
274 properties:
275 network: noauto
276 requirements:
277 - site:
278 node: mysite
279 relationship: tosca.relationships.MemberOfSite
280 - vPGWC:
281 node: service#vpgwc
282 relationship: tosca.relationships.MemberOfService
Omar Abdelkader33468932017-08-03 14:43:33 -0700283 - default_image:
284 node: trusty-server-multi-nic
285 relationship: tosca.relationships.DefaultImage
Pingping Linb3e8ded2017-07-25 14:54:24 -0700286 - default_flavor:
287 node: m1.small
288 relationship: tosca.relationships.DefaultFlavor
289 - connection_to_management:
290 node: management
291 relationship: tosca.relationships.ConnectsToNetwork
292 - connection_to_shared_network:
293 node: shared_network
294 relationship: tosca.relationships.ConnectsToNetwork
295 - connection_to_wan_network:
296 node: wan_network
297 relationship: tosca.relationships.ConnectsToNetwork
Yunpeng Zhangecb6feb2017-08-03 18:55:07 -0400298
299 mysite_vMM_slice:
300 description: vMM Service Slice
301 type: tosca.nodes.Slice
302 properties:
303 network: noauto
304 requirements:
305 - site:
306 node: mysite
307 relationship: tosca.relationships.MemberOfSite
308 - vPMM:
309 node: service#vmm
310 relationship: tosca.relationships.MemberOfService
311 - default_image:
312 node: trusty-server-multi-nic
313 relationship: tosca.relationships.DefaultImage
314 - default_flavor:
315 node: m1.small
316 relationship: tosca.relationships.DefaultFlavor
317 - connection_to_management:
318 node: management
319 relationship: tosca.relationships.ConnectsToNetwork
320 - connection_to_shared_network:
321 node: shared_network
322 relationship: tosca.relationships.ConnectsToNetwork
323
324 mysite_vSM_slice:
325 description: vSM Service Slice
326 type: tosca.nodes.Slice
327 properties:
328 network: noauto
329 requirements:
330 - site:
331 node: mysite
332 relationship: tosca.relationships.MemberOfSite
333 - vPMM:
334 node: service#vsm
335 relationship: tosca.relationships.MemberOfService
336 - default_image:
337 node: trusty-server-multi-nic
338 relationship: tosca.relationships.DefaultImage
339 - default_flavor:
340 node: m1.small
341 relationship: tosca.relationships.DefaultFlavor
342 - connection_to_management:
343 node: management
344 relationship: tosca.relationships.ConnectsToNetwork
345 - connection_to_shared_network:
346 node: shared_network
347 relationship: tosca.relationships.ConnectsToNetwork