Andy Bavier | d730b6d | 2017-11-17 08:52:07 -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 | |
| 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | description: created by platform-install, need to add M-CORD services later |
| 22 | |
| 23 | imports: |
| 24 | - custom_types/xos.yaml |
| 25 | - 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/venbservice.yaml |
| 33 | - custom_types/venbserviceinstance.yaml |
| 34 | - custom_types/vspgwcservice.yaml |
| 35 | - custom_types/vspgwcvendor.yaml |
| 36 | - custom_types/vspgwctenant.yaml |
| 37 | - custom_types/vspgwuservice.yaml |
| 38 | - custom_types/vspgwuvendor.yaml |
| 39 | - custom_types/vspgwutenant.yaml |
| 40 | |
| 41 | topology_template: |
| 42 | node_templates: |
| 43 | |
| 44 | # site, image, fully created in deployment.yaml |
| 45 | {{ site_name }}: |
| 46 | type: tosca.nodes.Site |
| 47 | properties: |
| 48 | must-exist: true |
| 49 | name: {{ site_name }} |
| 50 | |
| 51 | m1.small: |
| 52 | type: tosca.nodes.Flavor |
| 53 | properties: |
| 54 | name: m1.small |
| 55 | must-exist: true |
| 56 | m1.large: |
| 57 | type: tosca.nodes.Flavor |
| 58 | properties: |
| 59 | name: m1.large |
| 60 | must-exist: true |
| 61 | m1.medium: |
| 62 | type: tosca.nodes.Flavor |
| 63 | properties: |
| 64 | name: m1.medium |
| 65 | must-exist: true |
| 66 | m1.xlarge: |
| 67 | type: tosca.nodes.Flavor |
| 68 | properties: |
| 69 | name: m1.xlarge |
| 70 | must-exist: true |
| 71 | |
| 72 | image-venb: |
| 73 | type: tosca.nodes.Image |
| 74 | properties: |
| 75 | name: image-venb |
| 76 | |
| 77 | image-spgwc: |
| 78 | type: tosca.nodes.Image |
| 79 | properties: |
| 80 | name: image-spgwc |
| 81 | |
| 82 | image-spgwu: |
| 83 | type: tosca.nodes.Image |
| 84 | properties: |
| 85 | name: image-spgwu |
| 86 | |
| 87 | # management networks, fully created in management-net.yaml |
| 88 | management: |
| 89 | type: tosca.nodes.Network |
| 90 | properties: |
| 91 | must-exist: true |
| 92 | name: management |
| 93 | |
| 94 | {% if use_management_hosts %} |
| 95 | management_hosts: |
| 96 | type: tosca.nodes.Network |
| 97 | properties: |
| 98 | must-exist: true |
| 99 | name: management_hosts |
| 100 | {% endif %} |
| 101 | |
| 102 | # s1u_network is for connectivity between VMs, fully created in s1u-net.yaml |
| 103 | s1u_network: |
| 104 | type: tosca.nodes.Network |
| 105 | properties: |
| 106 | must-exist: true |
| 107 | name: s1u_network |
| 108 | # s11_network is for connectivity between VMs, fully created in s11-net.yaml |
| 109 | s11_network: |
| 110 | type: tosca.nodes.Network |
| 111 | properties: |
| 112 | must-exist: true |
| 113 | name: s11_network |
| 114 | # nbi_network is for connectivity between VMs, fully created in nbi-net.yaml |
| 115 | nbi_network: |
| 116 | type: tosca.nodes.Network |
| 117 | properties: |
| 118 | must-exist: true |
| 119 | name: nbi_network |
| 120 | # sbi_network is for connectivity between VMs, fully created in sbi-net.yaml |
| 121 | sbi_network: |
| 122 | type: tosca.nodes.Network |
| 123 | properties: |
| 124 | must-exist: true |
| 125 | name: sbi_network |
| 126 | # sgi_network is for connectivity between VMs, fully created in sgi-net.yaml |
| 127 | sgi_network: |
| 128 | type: tosca.nodes.Network |
| 129 | properties: |
| 130 | must-exist: true |
| 131 | name: sgi_network |
| 132 | # spgw_network is for connectivity between VMs, fully created in spgw-net.yaml |
| 133 | spgw_network: |
| 134 | type: tosca.nodes.Network |
| 135 | properties: |
| 136 | must-exist: true |
| 137 | name: spgw_network |
| 138 | # flat_network is for connectivity between VM inside cord and server outside, fully created in flat-net.yaml |
| 139 | flat_network: |
| 140 | type: tosca.nodes.Network |
| 141 | properties: |
| 142 | must-exist: true |
| 143 | name: flat_network |
| 144 | |
| 145 | # ONOS_CORD, fully created in vtn.yaml |
| 146 | service#ONOS_CORD: |
| 147 | type: tosca.nodes.ONOSService |
| 148 | properties: |
| 149 | must-exist: true |
| 150 | name: ONOS_CORD |
| 151 | |
| 152 | # ONOS_Fabric, fully created in fabric.yaml |
| 153 | service#ONOS_Fabric: |
| 154 | type: tosca.nodes.ONOSService |
| 155 | properties: |
| 156 | must-exist: true |
| 157 | name: ONOS_Fabric |
| 158 | |
| 159 | # vENB Service |
| 160 | service#venb: |
| 161 | type: tosca.nodes.VENBService |
| 162 | properties: |
| 163 | name: venb |
| 164 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 165 | private_key_fn: /opt/xos/services/venb/keys/mcord_rsa |
| 166 | artifacts: |
| 167 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 168 | |
| 169 | {{ site_name }}_venb: |
| 170 | description: vENB Service Slice |
| 171 | type: tosca.nodes.Slice |
| 172 | properties: |
| 173 | name: {{ site_name }}_venb |
| 174 | default_isolation: vm |
| 175 | network: noauto |
| 176 | requirements: |
| 177 | - site: |
| 178 | node: mysite |
| 179 | relationship: tosca.relationships.BelongsToOne |
| 180 | - service: |
| 181 | node: service#venb |
| 182 | relationship: tosca.relationships.BelongsToOne |
| 183 | - default_image: |
| 184 | node: image-venb |
| 185 | relationship: tosca.relationships.BelongsToOne |
| 186 | - default_flavor: |
| 187 | node: m1.xlarge |
| 188 | relationship: tosca.relationships.BelongsToOne |
| 189 | |
| 190 | venb_instance1: |
| 191 | type: tosca.nodes.VENBServiceInstance |
| 192 | properties: |
| 193 | name: venb_instance1 |
| 194 | requirements: |
| 195 | - owner: |
| 196 | node: service#venb |
| 197 | relationship: tosca.relationships.BelongsToOne |
| 198 | |
| 199 | venb_slice_management_network: |
| 200 | type: tosca.nodes.NetworkSlice |
| 201 | requirements: |
| 202 | - network: |
| 203 | node: management |
| 204 | relationship: tosca.relationships.BelongsToOne |
| 205 | - slice: |
| 206 | node: {{ site_name }}_venb |
| 207 | relationship: tosca.relationships.BelongsToOne |
| 208 | |
| 209 | venb_slice_s11_network: |
| 210 | type: tosca.nodes.NetworkSlice |
| 211 | requirements: |
| 212 | - network: |
| 213 | node: s11_network |
| 214 | relationship: tosca.relationships.BelongsToOne |
| 215 | - slice: |
| 216 | node: {{ site_name }}_venb |
| 217 | relationship: tosca.relationships.BelongsToOne |
| 218 | |
| 219 | venb_slice_s1u_network: |
| 220 | type: tosca.nodes.NetworkSlice |
| 221 | requirements: |
| 222 | - network: |
| 223 | node: s1u_network |
| 224 | relationship: tosca.relationships.BelongsToOne |
| 225 | - slice: |
| 226 | node: {{ site_name }}_venb |
| 227 | relationship: tosca.relationships.BelongsToOne |
| 228 | |
| 229 | venb_slice_sgi_network: |
| 230 | type: tosca.nodes.NetworkSlice |
| 231 | requirements: |
| 232 | - network: |
| 233 | node: sgi_network |
| 234 | relationship: tosca.relationships.BelongsToOne |
| 235 | - slice: |
| 236 | node: {{ site_name }}_venb |
| 237 | relationship: tosca.relationships.BelongsToOne |
| 238 | |
| 239 | #vSPGWC Service |
| 240 | service#vspgwc: |
| 241 | type: tosca.nodes.VSPGWCService |
| 242 | properties: |
| 243 | name: vspgwc |
| 244 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 245 | private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa |
| 246 | artifacts: |
| 247 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 248 | |
| 249 | {{ site_name }}_vspgwc: |
| 250 | description: SDN controller slice |
| 251 | type: tosca.nodes.Slice |
| 252 | properties: |
| 253 | name: {{ site_name }}_vspgwc |
| 254 | default_isolation: vm |
| 255 | network: noauto |
| 256 | requirements: |
| 257 | - site: |
| 258 | node: mysite |
| 259 | relationship: tosca.relationships.BelongsToOne |
| 260 | - service: |
| 261 | node: service#vspgwc |
| 262 | relationship: tosca.relationships.BelongsToOne |
| 263 | - default_image: |
| 264 | node: image-spgwc |
| 265 | relationship: tosca.relationships.BelongsToOne |
| 266 | - default_flavor: |
| 267 | node: m1.large |
| 268 | relationship: tosca.relationships.BelongsToOne |
| 269 | |
| 270 | intel_vspgwc: |
| 271 | type: tosca.nodes.VSPGWCVendor |
| 272 | properties: |
| 273 | name: intel_vspgwc |
| 274 | requirements: |
| 275 | - image: |
| 276 | node: image-spgwc |
| 277 | relationship: tosca.relationships.BelongsToOne |
| 278 | - flavor: |
| 279 | node: m1.large |
| 280 | relationship: tosca.relationships.BelongsToOne |
| 281 | |
| 282 | serviceinstance#vspgwc_instance: |
| 283 | type: tosca.nodes.VSPGWCTenant |
| 284 | properties: |
| 285 | name: vspgwc_instance1 |
| 286 | requirements: |
| 287 | - vspgwc_vendor: |
| 288 | node: intel_vspgwc |
| 289 | relationship: tosca.relationships.BelongsToOne |
| 290 | - owner: |
| 291 | node: service#vspgwc |
| 292 | relationship: tosca.relationships.BelongsToOne |
| 293 | |
| 294 | vspgwc_slice_management_network: |
| 295 | type: tosca.nodes.NetworkSlice |
| 296 | requirements: |
| 297 | - network: |
| 298 | node: management |
| 299 | relationship: tosca.relationships.BelongsToOne |
| 300 | - slice: |
| 301 | node: {{ site_name }}_vspgwc |
| 302 | relationship: tosca.relationships.BelongsToOne |
| 303 | |
| 304 | vspgwc_slice_s11_network: |
| 305 | type: tosca.nodes.NetworkSlice |
| 306 | requirements: |
| 307 | - network: |
| 308 | node: s11_network |
| 309 | relationship: tosca.relationships.BelongsToOne |
| 310 | - slice: |
| 311 | node: {{ site_name }}_vspgwc |
| 312 | relationship: tosca.relationships.BelongsToOne |
| 313 | |
| 314 | vspgwc_slice_spgw_network: |
| 315 | type: tosca.nodes.NetworkSlice |
| 316 | requirements: |
| 317 | - network: |
| 318 | node: spgw_network |
| 319 | relationship: tosca.relationships.BelongsToOne |
| 320 | - slice: |
| 321 | node: {{ site_name }}_vspgwc |
| 322 | relationship: tosca.relationships.BelongsToOne |
| 323 | |
| 324 | #vSPGWU Service |
| 325 | service#vspgwu: |
| 326 | type: tosca.nodes.VSPGWUService |
| 327 | properties: |
| 328 | name: vspgwu |
| 329 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 330 | private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa |
| 331 | artifacts: |
| 332 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 333 | |
| 334 | {{ site_name }}_vspgwu: |
| 335 | description: SDN controller slice |
| 336 | type: tosca.nodes.Slice |
| 337 | properties: |
| 338 | name: {{ site_name }}_vspgwu |
| 339 | default_isolation: vm |
| 340 | network: noauto |
| 341 | requirements: |
| 342 | - site: |
| 343 | node: mysite |
| 344 | relationship: tosca.relationships.BelongsToOne |
| 345 | - service: |
| 346 | node: service#vspgwu |
| 347 | relationship: tosca.relationships.BelongsToOne |
| 348 | - default_image: |
| 349 | node: image-spgwu |
| 350 | relationship: tosca.relationships.BelongsToOne |
| 351 | - default_flavor: |
| 352 | node: m1.xlarge |
| 353 | relationship: tosca.relationships.BelongsToOne |
| 354 | |
| 355 | intel_vspgwu: |
| 356 | type: tosca.nodes.VSPGWUVendor |
| 357 | properties: |
| 358 | name: intel_vspgwu |
| 359 | requirements: |
| 360 | - image: |
| 361 | node: image-spgwu |
| 362 | relationship: tosca.relationships.BelongsToOne |
| 363 | - flavor: |
| 364 | node: m1.xlarge |
| 365 | relationship: tosca.relationships.BelongsToOne |
| 366 | |
| 367 | serviceinstance#vspgwu_instance: |
| 368 | type: tosca.nodes.VSPGWUTenant |
| 369 | properties: |
| 370 | name: vspgwu_instance1 |
| 371 | requirements: |
| 372 | - vspgwu_vendor: |
| 373 | node: intel_vspgwu |
| 374 | relationship: tosca.relationships.BelongsToOne |
| 375 | - owner: |
| 376 | node: service#vspgwu |
| 377 | relationship: tosca.relationships.BelongsToOne |
| 378 | |
| 379 | vspgwu_slice_management_network: |
| 380 | type: tosca.nodes.NetworkSlice |
| 381 | requirements: |
| 382 | - network: |
| 383 | node: management |
| 384 | relationship: tosca.relationships.BelongsToOne |
| 385 | - slice: |
| 386 | node: {{ site_name }}_vspgwu |
| 387 | relationship: tosca.relationships.BelongsToOne |
| 388 | |
| 389 | vspgwu_slice_sgi_network: |
| 390 | type: tosca.nodes.NetworkSlice |
| 391 | requirements: |
| 392 | - network: |
| 393 | node: sgi_network |
| 394 | relationship: tosca.relationships.BelongsToOne |
| 395 | - slice: |
| 396 | node: {{ site_name }}_vspgwu |
| 397 | relationship: tosca.relationships.BelongsToOne |
| 398 | |
| 399 | vspgwu_slice_spgw_network: |
| 400 | type: tosca.nodes.NetworkSlice |
| 401 | requirements: |
| 402 | - network: |
| 403 | node: spgw_network |
| 404 | relationship: tosca.relationships.BelongsToOne |
| 405 | - slice: |
| 406 | node: {{ site_name }}_vspgwu |
| 407 | relationship: tosca.relationships.BelongsToOne |
| 408 | |
| 409 | vspgwu_slice_s1u_network: |
| 410 | type: tosca.nodes.NetworkSlice |
| 411 | requirements: |
| 412 | - network: |
| 413 | node: s1u_network |
| 414 | relationship: tosca.relationships.BelongsToOne |
| 415 | - slice: |
| 416 | node: {{ site_name }}_vspgwu |
| 417 | relationship: tosca.relationships.BelongsToOne |