Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup CORD-related services |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_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 |
| 92 | relationship: tosca.relationships.SiteDeployment |
| 93 | requirements: |
| 94 | - controller: |
| 95 | node: CloudLab |
| 96 | relationship: tosca.relationships.UsesController |
| 97 | |
| 98 | |
| 99 | # Nodes |
| 100 | node1.stanford.edu: |
| 101 | type: tosca.nodes.Node |
| 102 | requirements: |
| 103 | - site: |
| 104 | node: stanford |
| 105 | relationship: tosca.relationships.MemberOfSite |
| 106 | - deployment: |
| 107 | node: StanfordDeployment |
| 108 | relationship: tosca.relationships.MemberOfDeployment |
| 109 | |
| 110 | # Slices |
| 111 | stanford_slice: |
| 112 | description: Slice that contains sample instances |
| 113 | type: tosca.nodes.Slice |
| 114 | requirements: |
| 115 | - site: |
| 116 | node: stanford |
| 117 | relationship: tosca.relationships.MemberOfSite |
| 118 | |
| 119 | # Instances |
| 120 | BBU_service_instance1: |
| 121 | type: tosca.nodes.Compute |
| 122 | capabilities: |
| 123 | # Host container properties |
| 124 | host: |
| 125 | properties: |
| 126 | num_cpus: 1 |
| 127 | disk_size: 10 GB |
| 128 | mem_size: 4 MB |
| 129 | # Guest Operating System properties |
| 130 | os: |
| 131 | properties: |
| 132 | # host Operating System image properties |
| 133 | architecture: x86_64 |
| 134 | type: linux |
| 135 | distribution: ubuntu |
| 136 | version: 14.04 |
| 137 | requirements: |
| 138 | - slice: |
| 139 | node: stanford_slice |
| 140 | relationship: tosca.relationships.MemberOfSlice |
| 141 | |
| 142 | BBU_service_instance2: |
| 143 | type: tosca.nodes.Compute |
| 144 | capabilities: |
| 145 | # Host container properties |
| 146 | host: |
| 147 | properties: |
| 148 | num_cpus: 1 |
| 149 | disk_size: 10 GB |
| 150 | mem_size: 4 MB |
| 151 | # Guest Operating System properties |
| 152 | os: |
| 153 | properties: |
| 154 | # host Operating System image properties |
| 155 | architecture: x86_64 |
| 156 | type: linux |
| 157 | distribution: ubuntu |
| 158 | version: 14.04 |
| 159 | requirements: |
| 160 | - slice: |
| 161 | node: stanford_slice |
| 162 | relationship: tosca.relationships.MemberOfSlice |
| 163 | |
| 164 | MME_service_instance1: |
| 165 | type: tosca.nodes.Compute |
| 166 | capabilities: |
| 167 | # Host container properties |
| 168 | host: |
| 169 | properties: |
| 170 | num_cpus: 1 |
| 171 | disk_size: 10 GB |
| 172 | mem_size: 4 MB |
| 173 | # Guest Operating System properties |
| 174 | os: |
| 175 | properties: |
| 176 | # host Operating System image properties |
| 177 | architecture: x86_64 |
| 178 | type: linux |
| 179 | distribution: ubuntu |
| 180 | version: 14.04 |
| 181 | requirements: |
| 182 | - slice: |
| 183 | node: stanford_slice |
| 184 | relationship: tosca.relationships.MemberOfSlice |
| 185 | |
| 186 | SGW_service_instance1: |
| 187 | type: tosca.nodes.Compute |
| 188 | capabilities: |
| 189 | # Host container properties |
| 190 | host: |
| 191 | properties: |
| 192 | num_cpus: 1 |
| 193 | disk_size: 10 GB |
| 194 | mem_size: 4 MB |
| 195 | # Guest Operating System properties |
| 196 | os: |
| 197 | properties: |
| 198 | # host Operating System image properties |
| 199 | architecture: x86_64 |
| 200 | type: linux |
| 201 | distribution: ubuntu |
| 202 | version: 14.04 |
| 203 | requirements: |
| 204 | - slice: |
| 205 | node: stanford_slice |
| 206 | relationship: tosca.relationships.MemberOfSlice |
| 207 | |
| 208 | PGW_service_instance1: |
| 209 | type: tosca.nodes.Compute |
| 210 | capabilities: |
| 211 | # Host container properties |
| 212 | host: |
| 213 | properties: |
| 214 | num_cpus: 1 |
| 215 | disk_size: 10 GB |
| 216 | mem_size: 4 MB |
| 217 | # Guest Operating System properties |
| 218 | os: |
| 219 | properties: |
| 220 | # host Operating System image properties |
| 221 | architecture: x86_64 |
| 222 | type: linux |
| 223 | distribution: ubuntu |
| 224 | version: 14.04 |
| 225 | requirements: |
| 226 | - slice: |
| 227 | node: stanford_slice |
| 228 | relationship: tosca.relationships.MemberOfSlice |
| 229 | |
| 230 | # Let's add a user who can be administrator of the household |
| 231 | johndoe@stanford.us: |
| 232 | type: tosca.nodes.User |
| 233 | properties: |
| 234 | password: letmein |
| 235 | firstname: john |
| 236 | lastname: doe |
| 237 | requirements: |
| 238 | - site: |
| 239 | node: stanford |
| 240 | relationship: tosca.relationships.MemberOfSite |
| 241 | |
| 242 | # A subscriber |
| 243 | Stanford: |
| 244 | type: tosca.nodes.CORDSubscriber |
| 245 | properties: |
| 246 | service_specific_id: 123 |
| 247 | firewall_enable: false |
| 248 | cdn_enable: false |
| 249 | url_filter_enable: false |
| 250 | url_filter_level: R |
| 251 | requirements: |
| 252 | - house_admin: |
| 253 | node: johndoe@stanford.us |
| 254 | relationship: tosca.relationships.AdminPrivilege |
| 255 | |
| 256 | Barbera Lapinski: |
| 257 | type: tosca.nodes.CORDUser |
| 258 | properties: |
| 259 | mac: 01:02:03:04:05:06 |
| 260 | level: PG_13 |
| 261 | requirements: |
| 262 | - household: |
| 263 | node: Stanford |
| 264 | relationship: tosca.relationships.SubscriberDevice |
| 265 | |
| 266 | Norbert Shumway: |
| 267 | type: tosca.nodes.CORDUser |
| 268 | properties: |
| 269 | mac: 90:E2:BA:82:F9:75 |
| 270 | level: PG_13 |
| 271 | requirements: |
| 272 | - household: |
| 273 | node: Stanford |
| 274 | relationship: tosca.relationships.SubscriberDevice |
| 275 | |
| 276 | Fay Muldoon: |
| 277 | type: tosca.nodes.CORDUser |
| 278 | properties: |
| 279 | mac: 68:5B:35:9D:91:D5 |
| 280 | level: PG_13 |
| 281 | requirements: |
| 282 | - household: |
| 283 | node: Stanford |
| 284 | relationship: tosca.relationships.SubscriberDevice |
| 285 | |
| 286 | Janene Earnest: |
| 287 | type: tosca.nodes.CORDUser |
| 288 | properties: |
| 289 | mac: 34:36:3B:C9:B6:A6 |
| 290 | level: PG_13 |
| 291 | requirements: |
| 292 | - household: |
| 293 | node: Stanford |
| 294 | relationship: tosca.relationships.SubscriberDevice |
| 295 | |
| 296 | |
| 297 | Topology: |
| 298 | type: tosca.nodes.DashboardView |
| 299 | properties: |
| 300 | url: template:xosMcordTopology |
| 301 | |
| 302 | Ceilometer: |
| 303 | type: tosca.nodes.DashboardView |
| 304 | properties: |
| 305 | url: template:xosCeilometerDashboard |
| 306 | |
| 307 | padmin@vicci.org: |
| 308 | type: tosca.nodes.User |
| 309 | properties: |
| 310 | firstname: XOS |
| 311 | lastname: admin |
| 312 | is_admin: true |
| 313 | requirements: |
| 314 | - mcord_dashboard: |
| 315 | node: Topology |
| 316 | relationship: tosca.relationships.UsesDashboard |
| 317 | - ceilometer_dashboard: |
| 318 | node: Ceilometer |
| 319 | relationship: tosca.relationships.UsesDashboard |