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