blob: 40d21ef3fe424f16aa4324151d790b329a73dac3 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
mcord3e589142017-05-24 16:05:07 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
Pingping Lin2da4fec2017-10-16 17:50:54 -070025 - custom_types/slice.yaml
26 - custom_types/site.yaml
27 - custom_types/image.yaml
28 - custom_types/flavor.yaml
29 - custom_types/network.yaml
30 - custom_types/onosservice.yaml
31 - custom_types/networkslice.yaml
32 - custom_types/vmmeservice.yaml
33 - custom_types/vmmevendor.yaml
34 - custom_types/vmmetenant.yaml
mcord3e589142017-05-24 16:05:07 -070035
36topology_template:
37 node_templates:
38
39# site, image, fully created in deployment.yaml
40 {{ site_name }}:
41 type: tosca.nodes.Site
Pingping Lin2da4fec2017-10-16 17:50:54 -070042 properties:
43 must-exist: true
44 name: {{ site_name }}
mcord3e589142017-05-24 16:05:07 -070045
Pingping Lin040a7732017-10-05 20:23:40 -070046 m1.small:
47 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070048 properties:
49 name: m1.small
50 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070051 m1.large:
52 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070053 properties:
54 name: m1.large
55 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070056 m1.medium:
57 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070058 properties:
59 name: m1.medium
60 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070061 m1.xlarge:
62 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070063 properties:
64 name: m1.xlarge
65 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070066
67 trusty-server-multi-nic:
mcord3e589142017-05-24 16:05:07 -070068 type: tosca.nodes.Image
Pingping Lin2da4fec2017-10-16 17:50:54 -070069 properties:
70 name: trusty-server-multi-nic
mcord3e589142017-05-24 16:05:07 -070071
72# management networks, fully created in management-net.yaml
73 management:
Pingping Lin2da4fec2017-10-16 17:50:54 -070074 type: tosca.nodes.Network
mcord3e589142017-05-24 16:05:07 -070075 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070076 must-exist: true
77 name: management
mcord3e589142017-05-24 16:05:07 -070078
79{% if use_management_hosts %}
80 management_hosts:
Pingping Lin2da4fec2017-10-16 17:50:54 -070081 type: tosca.nodes.Network
mcord3e589142017-05-24 16:05:07 -070082 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070083 must-exist: true
Andy Bavieracc73ec2017-10-20 11:19:20 -070084 name: management_hosts
mcord3e589142017-05-24 16:05:07 -070085{% endif %}
86
Andy Bavierc4379e22017-10-17 10:14:57 -070087# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
88 s1u_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -070089 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -070090 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070091 must-exist: true
92 name: s1u_network
Andy Bavierc4379e22017-10-17 10:14:57 -070093# s11_network is for connectivity between VMs, fully created in s11-net.yaml
94 s11_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -070095 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -070096 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070097 must-exist: true
98 name: s11_network
Andy Bavierc4379e22017-10-17 10:14:57 -070099# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
100 nbi_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700101 type: tosca.nodes.Network
Andy Bavierc4379e22017-10-17 10:14:57 -0700102 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700103 must-exist: true
104 name: nbi_network
Andy Bavierc4379e22017-10-17 10:14:57 -0700105# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
106 sbi_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700107 type: tosca.nodes.Network
Andy Bavierc4379e22017-10-17 10:14:57 -0700108 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700109 must-exist: true
110 name: sbi_network
Andy Bavierc4379e22017-10-17 10:14:57 -0700111# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
112 sgi_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700113 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -0700114 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700115 must-exist: true
116 name: sgi_network
Andy Bavieracc73ec2017-10-20 11:19:20 -0700117# s1mme_network is for connectivity between VMs, fully created in s1mme-net.yaml
118 s1mme_network:
119 type: tosca.nodes.Network
120 properties:
121 must-exist: true
122 name: s1mme_network
Pingping Lin2da4fec2017-10-16 17:50:54 -0700123
124
Pingping Lin040a7732017-10-05 20:23:40 -0700125
mcord3e589142017-05-24 16:05:07 -0700126# ONOS_CORD, fully created in vtn.yaml
127 service#ONOS_CORD:
128 type: tosca.nodes.ONOSService
129 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700130 must-exist: true
131 name: ONOS_CORD
mcord3e589142017-05-24 16:05:07 -0700132
133# ONOS_Fabric, fully created in fabric.yaml
134 service#ONOS_Fabric:
135 type: tosca.nodes.ONOSService
136 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700137 must-exist: true
138 name: ONOS_Fabric
mcord3e589142017-05-24 16:05:07 -0700139
Pingping Lin040a7732017-10-05 20:23:40 -0700140# CORD Services
141 service#vmme:
142 type: tosca.nodes.VMMEService
143 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700144 name: mme
Pingping Lin040a7732017-10-05 20:23:40 -0700145 kind: vEPC
Pingping Lin2da4fec2017-10-16 17:50:54 -0700146 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
Pingping Lin040a7732017-10-05 20:23:40 -0700147 private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa
148 artifacts:
149 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
Andy Bavieracc73ec2017-10-20 11:19:20 -0700150
Pingping Lin2da4fec2017-10-16 17:50:54 -0700151 intel_mme:
152 type: tosca.nodes.VMMEVendor
153 properties:
154 name: intel_mme
155 requirements:
156 - image:
157 node: trusty-server-multi-nic
158 relationship: tosca.relationships.BelongsToOne
159 - flavor:
160 node: m1.small
161 relationship: tosca.relationships.BelongsToOne
162
163 vmme_tenant1:
164 type: tosca.nodes.VMMETenant
165 properties:
166 name: vmme_tenant1
167 requirements:
168 - vmme_vendor:
169 node: intel_mme
170 relationship: tosca.relationships.BelongsToOne
171 - owner:
172 node: service#vmme
173 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -0700174
175# CORD Slices
Andy Bavierc4379e22017-10-17 10:14:57 -0700176 {{ site_name }}_vmme:
Pingping Lin040a7732017-10-05 20:23:40 -0700177 description: vMME Service Slice
178 type: tosca.nodes.Slice
179 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700180 name: {{ site_name }}_vmme
181 default_isolation: vm
Andy Bavieracc73ec2017-10-20 11:19:20 -0700182 network: noauto
Pingping Lin040a7732017-10-05 20:23:40 -0700183 requirements:
184 - site:
185 node: mysite
Pingping Lin2da4fec2017-10-16 17:50:54 -0700186 relationship: tosca.relationships.BelongsToOne
187 - service:
Pingping Lin040a7732017-10-05 20:23:40 -0700188 node: service#vmme
Pingping Lin2da4fec2017-10-16 17:50:54 -0700189 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -0700190 - default_image:
191 node: trusty-server-multi-nic
Pingping Lin2da4fec2017-10-16 17:50:54 -0700192 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -0700193 - default_flavor:
194 node: m1.small
Pingping Lin2da4fec2017-10-16 17:50:54 -0700195 relationship: tosca.relationships.BelongsToOne
Pingping Lin2da4fec2017-10-16 17:50:54 -0700196
Andy Bavieracc73ec2017-10-20 11:19:20 -0700197 mme_slice_management_network:
198 type: tosca.nodes.NetworkSlice
199 requirements:
200 - network:
201 node: management
202 relationship: tosca.relationships.BelongsToOne
203 - slice:
204 node: {{ site_name }}_vmme
205 relationship: tosca.relationships.BelongsToOne
206
207 mme_slice_s11_network:
208 type: tosca.nodes.NetworkSlice
209 requirements:
210 - network:
211 node: s11_network
212 relationship: tosca.relationships.BelongsToOne
213 - slice:
214 node: {{ site_name }}_vmme
215 relationship: tosca.relationships.BelongsToOne
216
217 mme_slice_s1mme_network:
218 type: tosca.nodes.NetworkSlice
219 requirements:
220 - network:
221 node: s1mme_network
222 relationship: tosca.relationships.BelongsToOne
223 - slice:
224 node: {{ site_name }}_vmme
225 relationship: tosca.relationships.BelongsToOne