blob: c7b8ea784a9e7f6678f84f94d602d50988a2c58b [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup CORD-related services
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10 # M-CORD Services
11
12 # RAN
13 vBBU:
14 type: tosca.nodes.Service
15 properties:
16 view_url: /mcord/?service=vBBU
17 kind: RAN
18
19 eSON:
20 type: tosca.nodes.Service
21 properties:
22 view_url: http://www.google.com
23 kind: RAN
24
25 # EPC
26 vMME:
27 type: tosca.nodes.Service
28 properties:
29 view_url: /mcord/?service=vMME
30 kind: EPC
31
32 vSGW:
33 type: tosca.nodes.Service
34 properties:
35 view_url: /mcord/?service=vSGW
36 kind: EPC
37
38 vPGW:
39 type: tosca.nodes.Service
40 properties:
41 view_url: /mcord/?service=vPGW
42 kind: EPC
43
44 # EDGE
45 Cache:
46 type: tosca.nodes.Service
47 properties:
48 view_url: /mcord/?service=Cache
49 icon_url: /static/mCordServices/service_cache.png
50 kind: EDGE
51
52 Firewall:
53 type: tosca.nodes.Service
54 properties:
55 view_url: /mcord/?service=Firewall
56 icon_url: /static/mCordServices/service_firewall.png
57 kind: EDGE
58
59 Video Optimization:
60 type: tosca.nodes.Service
61 properties:
62 view_url: /mcord/?service=Video%20Optimization
63 icon_url: /static/mCordServices/service_video.png
64 kind: EDGE
65
66 # Images
67 trusty-server-multi-nic:
68 type: tosca.nodes.Image
69 properties:
70 disk_format: QCOW2
71 container_format: BARE
72
73 # Deployments
74 StanfordDeployment:
75 type: tosca.nodes.Deployment
76 properties:
77 flavors: m1.large, m1.medium, m1.small
78 requirements:
79 - image:
80 node: trusty-server-multi-nic
81 relationship: tosca.relationships.SupportsImage
82
83 # Site
84 stanford:
85 type: tosca.nodes.Site
86 properties:
87 display_name: Stanford University
88 site_url: https://www.stanford.edu/
89 requirements:
90 - deployment:
91 node: StanfordDeployment
Scott Baker039cb682016-10-06 15:18:46 -070092 relationship: tosca.relationships.MemberOfDeployment
93 - controller:
94 node: CloudLab
95 relationship: tosca.relationships.UsesController
Scott Baker50421662016-06-27 22:09:48 -070096
97
98 # Nodes
99 node1.stanford.edu:
100 type: tosca.nodes.Node
101 requirements:
102 - site:
103 node: stanford
104 relationship: tosca.relationships.MemberOfSite
105 - deployment:
106 node: StanfordDeployment
107 relationship: tosca.relationships.MemberOfDeployment
108
109 # Slices
110 stanford_slice:
111 description: Slice that contains sample instances
112 type: tosca.nodes.Slice
113 requirements:
114 - site:
115 node: stanford
116 relationship: tosca.relationships.MemberOfSite
117
118 # Instances
119 BBU_service_instance1:
120 type: tosca.nodes.Compute
121 capabilities:
122 # Host container properties
123 host:
124 properties:
125 num_cpus: 1
126 disk_size: 10 GB
127 mem_size: 4 MB
128 # Guest Operating System properties
129 os:
130 properties:
131 # host Operating System image properties
132 architecture: x86_64
133 type: linux
134 distribution: ubuntu
135 version: 14.04
136 requirements:
137 - slice:
138 node: stanford_slice
139 relationship: tosca.relationships.MemberOfSlice
140
141 BBU_service_instance2:
142 type: tosca.nodes.Compute
143 capabilities:
144 # Host container properties
145 host:
146 properties:
147 num_cpus: 1
148 disk_size: 10 GB
149 mem_size: 4 MB
150 # Guest Operating System properties
151 os:
152 properties:
153 # host Operating System image properties
154 architecture: x86_64
155 type: linux
156 distribution: ubuntu
157 version: 14.04
158 requirements:
159 - slice:
160 node: stanford_slice
161 relationship: tosca.relationships.MemberOfSlice
162
163 MME_service_instance1:
164 type: tosca.nodes.Compute
165 capabilities:
166 # Host container properties
167 host:
168 properties:
169 num_cpus: 1
170 disk_size: 10 GB
171 mem_size: 4 MB
172 # Guest Operating System properties
173 os:
174 properties:
175 # host Operating System image properties
176 architecture: x86_64
177 type: linux
178 distribution: ubuntu
179 version: 14.04
180 requirements:
181 - slice:
182 node: stanford_slice
183 relationship: tosca.relationships.MemberOfSlice
184
185 SGW_service_instance1:
186 type: tosca.nodes.Compute
187 capabilities:
188 # Host container properties
189 host:
190 properties:
191 num_cpus: 1
192 disk_size: 10 GB
193 mem_size: 4 MB
194 # Guest Operating System properties
195 os:
196 properties:
197 # host Operating System image properties
198 architecture: x86_64
199 type: linux
200 distribution: ubuntu
201 version: 14.04
202 requirements:
203 - slice:
204 node: stanford_slice
205 relationship: tosca.relationships.MemberOfSlice
206
207 PGW_service_instance1:
208 type: tosca.nodes.Compute
209 capabilities:
210 # Host container properties
211 host:
212 properties:
213 num_cpus: 1
214 disk_size: 10 GB
215 mem_size: 4 MB
216 # Guest Operating System properties
217 os:
218 properties:
219 # host Operating System image properties
220 architecture: x86_64
221 type: linux
222 distribution: ubuntu
223 version: 14.04
224 requirements:
225 - slice:
226 node: stanford_slice
227 relationship: tosca.relationships.MemberOfSlice
228
229 # Let's add a user who can be administrator of the household
230 johndoe@stanford.us:
231 type: tosca.nodes.User
232 properties:
233 password: letmein
234 firstname: john
235 lastname: doe
236 requirements:
237 - site:
238 node: stanford
239 relationship: tosca.relationships.MemberOfSite
240
241 # A subscriber
242 Stanford:
243 type: tosca.nodes.CORDSubscriber
244 properties:
245 service_specific_id: 123
246 firewall_enable: false
247 cdn_enable: false
248 url_filter_enable: false
249 url_filter_level: R
250 requirements:
251 - house_admin:
252 node: johndoe@stanford.us
253 relationship: tosca.relationships.AdminPrivilege
254
255 Barbera Lapinski:
256 type: tosca.nodes.CORDUser
257 properties:
258 mac: 01:02:03:04:05:06
259 level: PG_13
260 requirements:
261 - household:
262 node: Stanford
263 relationship: tosca.relationships.SubscriberDevice
264
265 Norbert Shumway:
266 type: tosca.nodes.CORDUser
267 properties:
268 mac: 90:E2:BA:82:F9:75
269 level: PG_13
270 requirements:
271 - household:
272 node: Stanford
273 relationship: tosca.relationships.SubscriberDevice
274
275 Fay Muldoon:
276 type: tosca.nodes.CORDUser
277 properties:
278 mac: 68:5B:35:9D:91:D5
279 level: PG_13
280 requirements:
281 - household:
282 node: Stanford
283 relationship: tosca.relationships.SubscriberDevice
284
285 Janene Earnest:
286 type: tosca.nodes.CORDUser
287 properties:
288 mac: 34:36:3B:C9:B6:A6
289 level: PG_13
290 requirements:
291 - household:
292 node: Stanford
293 relationship: tosca.relationships.SubscriberDevice
294
295
296 Topology:
297 type: tosca.nodes.DashboardView
298 properties:
299 url: template:xosMcordTopology
300
301 Ceilometer:
302 type: tosca.nodes.DashboardView
303 properties:
304 url: template:xosCeilometerDashboard
305
306 padmin@vicci.org:
307 type: tosca.nodes.User
308 properties:
309 firstname: XOS
310 lastname: admin
311 is_admin: true
312 requirements:
313 - mcord_dashboard:
314 node: Topology
315 relationship: tosca.relationships.UsesDashboard
316 - ceilometer_dashboard:
317 node: Ceilometer
318 relationship: tosca.relationships.UsesDashboard