Woojoong Kim | 021c8f5 | 2017-12-18 11:47:26 -0800 | [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 |
| 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/vspgwcservice.yaml |
| 33 | - custom_types/vspgwcvendor.yaml |
| 34 | - custom_types/vspgwuservice.yaml |
| 35 | - custom_types/vspgwuvendor.yaml |
| 36 | - custom_types/vmmeservice.yaml |
| 37 | - custom_types/vmmevendor.yaml |
| 38 | - custom_types/vepcservice.yaml |
| 39 | - custom_types/servicedependency.yaml |
| 40 | - custom_types/mcordsubscriberservice.yaml |
| 41 | |
| 42 | topology_template: |
| 43 | node_templates: |
| 44 | |
| 45 | # site, image, fully created in deployment.yaml |
| 46 | {{ site_name }}: |
| 47 | type: tosca.nodes.Site |
| 48 | properties: |
| 49 | must-exist: true |
| 50 | name: {{ site_name }} |
| 51 | |
| 52 | m1.small: |
| 53 | type: tosca.nodes.Flavor |
| 54 | properties: |
| 55 | name: m1.small |
| 56 | must-exist: true |
| 57 | m1.large: |
| 58 | type: tosca.nodes.Flavor |
| 59 | properties: |
| 60 | name: m1.large |
| 61 | must-exist: true |
| 62 | m1.medium: |
| 63 | type: tosca.nodes.Flavor |
| 64 | properties: |
| 65 | name: m1.medium |
| 66 | must-exist: true |
| 67 | m1.xlarge: |
| 68 | type: tosca.nodes.Flavor |
| 69 | properties: |
| 70 | name: m1.xlarge |
| 71 | must-exist: true |
| 72 | |
| 73 | image-test: |
| 74 | type: tosca.nodes.Image |
| 75 | properties: |
| 76 | name: image-test |
| 77 | |
| 78 | image-spgwc: |
| 79 | type: tosca.nodes.Image |
| 80 | properties: |
| 81 | name: image-spgwc |
| 82 | |
| 83 | image-spgwu: |
| 84 | type: tosca.nodes.Image |
| 85 | properties: |
| 86 | name: image-spgwu |
| 87 | |
| 88 | # management networks, fully created in management-net.yaml |
| 89 | management: |
| 90 | type: tosca.nodes.Network |
| 91 | properties: |
| 92 | must-exist: true |
| 93 | name: management |
| 94 | |
| 95 | {% if use_management_hosts %} |
| 96 | management_hosts: |
| 97 | type: tosca.nodes.Network |
| 98 | properties: |
| 99 | must-exist: true |
| 100 | name: management_hosts |
| 101 | {% endif %} |
| 102 | |
| 103 | # flat_network_s1mme is for connectivity between VMs, fully created in flat-net-s1mme.yaml |
| 104 | flat_network_s1mme: |
| 105 | type: tosca.nodes.Network |
| 106 | properties: |
| 107 | must-exist: true |
| 108 | name: flat_network_s1mme |
| 109 | # flat_network_s1u is for connectivity between VMs, fully created in flat-net-s1u.yaml |
| 110 | flat_network_s1u: |
| 111 | type: tosca.nodes.Network |
| 112 | properties: |
| 113 | must-exist: true |
| 114 | name: flat_network_s1u |
| 115 | # s11_network is for connectivity between VMs, fully created in s11-net.yaml |
| 116 | s11_network: |
| 117 | type: tosca.nodes.Network |
| 118 | properties: |
| 119 | must-exist: true |
| 120 | name: s11_network |
| 121 | # sgi_network is for connectivity between VMs, fully created in sgi-net.yaml |
| 122 | sgi_network: |
| 123 | type: tosca.nodes.Network |
| 124 | properties: |
| 125 | must-exist: true |
| 126 | name: sgi_network |
| 127 | # spgw_network is for connectivity between VMs, fully created in spgw-net.yaml |
| 128 | spgw_network: |
| 129 | type: tosca.nodes.Network |
| 130 | properties: |
| 131 | must-exist: true |
| 132 | name: spgw_network |
| 133 | |
| 134 | # ONOS_CORD, fully created in vtn.yaml |
| 135 | service#ONOS_CORD: |
| 136 | type: tosca.nodes.ONOSService |
| 137 | properties: |
| 138 | must-exist: true |
| 139 | name: ONOS_CORD |
| 140 | |
| 141 | # ONOS_Fabric, fully created in fabric.yaml |
| 142 | service#ONOS_Fabric: |
| 143 | type: tosca.nodes.ONOSService |
| 144 | properties: |
| 145 | must-exist: true |
| 146 | name: ONOS_Fabric |
| 147 | |
| 148 | # vMME Service |
| 149 | service#vmme: |
| 150 | type: tosca.nodes.VMMEService |
| 151 | properties: |
| 152 | name: vmme |
| 153 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 154 | private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa |
| 155 | artifacts: |
| 156 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 157 | |
| 158 | {{ site_name }}_vmme: |
| 159 | description: vMME Service Slice |
| 160 | type: tosca.nodes.Slice |
| 161 | properties: |
| 162 | name: {{ site_name }}_vmme |
| 163 | default_isolation: vm |
| 164 | network: noauto |
| 165 | requirements: |
| 166 | - site: |
| 167 | node: mysite |
| 168 | relationship: tosca.relationships.BelongsToOne |
| 169 | - service: |
| 170 | node: service#vmme |
| 171 | relationship: tosca.relationships.BelongsToOne |
| 172 | - default_image: |
| 173 | node: image-test |
| 174 | relationship: tosca.relationships.BelongsToOne |
| 175 | - default_flavor: |
| 176 | node: m1.medium |
| 177 | relationship: tosca.relationships.BelongsToOne |
| 178 | |
| 179 | sprint_mme: |
| 180 | type: tosca.nodes.VMMEVendor |
| 181 | properties: |
| 182 | name: sprint_mme |
| 183 | requirements: |
| 184 | - image: |
| 185 | node: image-test |
| 186 | relationship: tosca.relationships.BelongsToOne |
| 187 | - flavor: |
| 188 | node: m1.medium |
| 189 | relationship: tosca.relationships.BelongsToOne |
| 190 | |
| 191 | #vSPGWC Service |
| 192 | service#vspgwc: |
| 193 | type: tosca.nodes.VSPGWCService |
| 194 | properties: |
| 195 | name: vspgwc |
| 196 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 197 | private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa |
| 198 | artifacts: |
| 199 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 200 | |
| 201 | {{ site_name }}_vspgwc: |
| 202 | description: SDN controller slice |
| 203 | type: tosca.nodes.Slice |
| 204 | properties: |
| 205 | name: {{ site_name }}_vspgwc |
| 206 | default_isolation: vm |
| 207 | network: noauto |
| 208 | requirements: |
| 209 | - site: |
| 210 | node: mysite |
| 211 | relationship: tosca.relationships.BelongsToOne |
| 212 | - service: |
| 213 | node: service#vspgwc |
| 214 | relationship: tosca.relationships.BelongsToOne |
| 215 | - default_image: |
| 216 | node: image-spgwc |
| 217 | relationship: tosca.relationships.BelongsToOne |
| 218 | - default_flavor: |
| 219 | node: m1.large |
| 220 | relationship: tosca.relationships.BelongsToOne |
| 221 | |
| 222 | intel_vspgwc: |
| 223 | type: tosca.nodes.VSPGWCVendor |
| 224 | properties: |
| 225 | name: intel_vspgwc |
| 226 | requirements: |
| 227 | - image: |
| 228 | node: image-spgwc |
| 229 | relationship: tosca.relationships.BelongsToOne |
| 230 | - flavor: |
| 231 | node: m1.large |
| 232 | relationship: tosca.relationships.BelongsToOne |
| 233 | |
| 234 | |
| 235 | #vSPGWU Service |
| 236 | service#vspgwu: |
| 237 | type: tosca.nodes.VSPGWUService |
| 238 | properties: |
| 239 | name: vspgwu |
| 240 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 241 | private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa |
| 242 | artifacts: |
| 243 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 244 | |
| 245 | {{ site_name }}_vspgwu: |
| 246 | description: SDN controller slice |
| 247 | type: tosca.nodes.Slice |
| 248 | properties: |
| 249 | name: {{ site_name }}_vspgwu |
| 250 | default_isolation: vm |
| 251 | network: noauto |
| 252 | requirements: |
| 253 | - site: |
| 254 | node: mysite |
| 255 | relationship: tosca.relationships.BelongsToOne |
| 256 | - service: |
| 257 | node: service#vspgwu |
| 258 | relationship: tosca.relationships.BelongsToOne |
| 259 | - default_image: |
| 260 | node: image-spgwu |
| 261 | relationship: tosca.relationships.BelongsToOne |
| 262 | - default_flavor: |
| 263 | node: m1.xlarge |
| 264 | relationship: tosca.relationships.BelongsToOne |
| 265 | |
| 266 | intel_vspgwu: |
| 267 | type: tosca.nodes.VSPGWUVendor |
| 268 | properties: |
| 269 | name: intel_vspgwu |
| 270 | requirements: |
| 271 | - image: |
| 272 | node: image-spgwu |
| 273 | relationship: tosca.relationships.BelongsToOne |
| 274 | - flavor: |
| 275 | node: m1.xlarge |
| 276 | relationship: tosca.relationships.BelongsToOne |
| 277 | |
| 278 | # vEPC Service |
| 279 | service#vepc: |
| 280 | type: tosca.nodes.VEPCService |
| 281 | properties: |
| 282 | name: vepc |
| 283 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 284 | private_key_fn: /opt/xos/services/epc-service/keys/mcord_rsa |
| 285 | artifacts: |
| 286 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 287 | |
| 288 | # ServiceDependencies |
| 289 | vmme_vspgwc: |
| 290 | type: tosca.nodes.ServiceDependency |
| 291 | properties: |
| 292 | connect_method: None |
| 293 | requirements: |
| 294 | - subscriber_service: |
| 295 | node: service#vmme |
| 296 | relationship: tosca.relationships.BelongsToOne |
| 297 | - provider_service: |
| 298 | node: service#vspgwc |
| 299 | relationship: tosca.relationships.BelongsToOne |
| 300 | |
| 301 | vmme_vspgwu: |
| 302 | type: tosca.nodes.ServiceDependency |
| 303 | properties: |
| 304 | connect_method: None |
| 305 | requirements: |
| 306 | - subscriber_service: |
| 307 | node: service#vmme |
| 308 | relationship: tosca.relationships.BelongsToOne |
| 309 | - provider_service: |
| 310 | node: service#vspgwu |
| 311 | relationship: tosca.relationships.BelongsToOne |
| 312 | |
| 313 | vspgwc_vspgwu: |
| 314 | type: tosca.nodes.ServiceDependency |
| 315 | properties: |
| 316 | connect_method: None |
| 317 | requirements: |
| 318 | - subscriber_service: |
| 319 | node: service#vspgwc |
| 320 | relationship: tosca.relationships.BelongsToOne |
| 321 | - provider_service: |
| 322 | node: service#vspgwu |
| 323 | relationship: tosca.relationships.BelongsToOne |
| 324 | |
| 325 | # M-CORD Subscriber |
| 326 | service#mcord: |
| 327 | type: tosca.nodes.MCordSubscriberService |
| 328 | properties: |
| 329 | name: mcord |
| 330 | |
| 331 | # ServiceDependency M-CORD to vENB |
| 332 | mcord_vmme: |
| 333 | type: tosca.nodes.ServiceDependency |
| 334 | properties: |
| 335 | connect_method: None |
| 336 | requirements: |
| 337 | - subscriber_service: |
| 338 | node: service#vmme |
| 339 | relationship: tosca.relationships.BelongsToOne |
| 340 | - provider_service: |
| 341 | node: service#mcord |
| 342 | relationship: tosca.relationships.BelongsToOne |