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