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 |
Andy Bavier | d730b6d | 2017-11-17 08:52:07 -0700 | [diff] [blame] | 33 | - custom_types/vspgwcservice.yaml |
| 34 | - custom_types/vspgwcvendor.yaml |
Andy Bavier | d730b6d | 2017-11-17 08:52:07 -0700 | [diff] [blame] | 35 | - custom_types/vspgwuservice.yaml |
| 36 | - custom_types/vspgwuvendor.yaml |
Andy Bavier | d4a56da | 2017-11-27 14:10:15 -0700 | [diff] [blame] | 37 | - custom_types/vepcservice.yaml |
Andy Bavier | d730b6d | 2017-11-17 08:52:07 -0700 | [diff] [blame] | 38 | |
| 39 | topology_template: |
| 40 | node_templates: |
| 41 | |
| 42 | # site, image, fully created in deployment.yaml |
| 43 | {{ site_name }}: |
| 44 | type: tosca.nodes.Site |
| 45 | properties: |
| 46 | must-exist: true |
| 47 | name: {{ site_name }} |
| 48 | |
| 49 | m1.small: |
| 50 | type: tosca.nodes.Flavor |
| 51 | properties: |
| 52 | name: m1.small |
| 53 | must-exist: true |
| 54 | m1.large: |
| 55 | type: tosca.nodes.Flavor |
| 56 | properties: |
| 57 | name: m1.large |
| 58 | must-exist: true |
| 59 | m1.medium: |
| 60 | type: tosca.nodes.Flavor |
| 61 | properties: |
| 62 | name: m1.medium |
| 63 | must-exist: true |
| 64 | m1.xlarge: |
| 65 | type: tosca.nodes.Flavor |
| 66 | properties: |
| 67 | name: m1.xlarge |
| 68 | must-exist: true |
| 69 | |
| 70 | image-venb: |
| 71 | type: tosca.nodes.Image |
| 72 | properties: |
| 73 | name: image-venb |
| 74 | |
| 75 | image-spgwc: |
| 76 | type: tosca.nodes.Image |
| 77 | properties: |
| 78 | name: image-spgwc |
| 79 | |
| 80 | image-spgwu: |
| 81 | type: tosca.nodes.Image |
| 82 | properties: |
| 83 | name: image-spgwu |
| 84 | |
| 85 | # management networks, fully created in management-net.yaml |
| 86 | management: |
| 87 | type: tosca.nodes.Network |
| 88 | properties: |
| 89 | must-exist: true |
| 90 | name: management |
| 91 | |
| 92 | {% if use_management_hosts %} |
| 93 | management_hosts: |
| 94 | type: tosca.nodes.Network |
| 95 | properties: |
| 96 | must-exist: true |
| 97 | name: management_hosts |
| 98 | {% endif %} |
| 99 | |
| 100 | # s1u_network is for connectivity between VMs, fully created in s1u-net.yaml |
| 101 | s1u_network: |
| 102 | type: tosca.nodes.Network |
| 103 | properties: |
| 104 | must-exist: true |
| 105 | name: s1u_network |
| 106 | # s11_network is for connectivity between VMs, fully created in s11-net.yaml |
| 107 | s11_network: |
| 108 | type: tosca.nodes.Network |
| 109 | properties: |
| 110 | must-exist: true |
| 111 | name: s11_network |
| 112 | # nbi_network is for connectivity between VMs, fully created in nbi-net.yaml |
| 113 | nbi_network: |
| 114 | type: tosca.nodes.Network |
| 115 | properties: |
| 116 | must-exist: true |
| 117 | name: nbi_network |
| 118 | # sbi_network is for connectivity between VMs, fully created in sbi-net.yaml |
| 119 | sbi_network: |
| 120 | type: tosca.nodes.Network |
| 121 | properties: |
| 122 | must-exist: true |
| 123 | name: sbi_network |
| 124 | # sgi_network is for connectivity between VMs, fully created in sgi-net.yaml |
| 125 | sgi_network: |
| 126 | type: tosca.nodes.Network |
| 127 | properties: |
| 128 | must-exist: true |
| 129 | name: sgi_network |
| 130 | # spgw_network is for connectivity between VMs, fully created in spgw-net.yaml |
| 131 | spgw_network: |
| 132 | type: tosca.nodes.Network |
| 133 | properties: |
| 134 | must-exist: true |
| 135 | name: spgw_network |
| 136 | # flat_network is for connectivity between VM inside cord and server outside, fully created in flat-net.yaml |
| 137 | flat_network: |
| 138 | type: tosca.nodes.Network |
| 139 | properties: |
| 140 | must-exist: true |
| 141 | name: flat_network |
| 142 | |
| 143 | # ONOS_CORD, fully created in vtn.yaml |
| 144 | service#ONOS_CORD: |
| 145 | type: tosca.nodes.ONOSService |
| 146 | properties: |
| 147 | must-exist: true |
| 148 | name: ONOS_CORD |
| 149 | |
| 150 | # ONOS_Fabric, fully created in fabric.yaml |
| 151 | service#ONOS_Fabric: |
| 152 | type: tosca.nodes.ONOSService |
| 153 | properties: |
| 154 | must-exist: true |
| 155 | name: ONOS_Fabric |
| 156 | |
| 157 | # vENB Service |
| 158 | service#venb: |
| 159 | type: tosca.nodes.VENBService |
| 160 | properties: |
| 161 | name: venb |
| 162 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 163 | private_key_fn: /opt/xos/services/venb/keys/mcord_rsa |
| 164 | artifacts: |
| 165 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 166 | |
| 167 | {{ site_name }}_venb: |
| 168 | description: vENB Service Slice |
| 169 | type: tosca.nodes.Slice |
| 170 | properties: |
| 171 | name: {{ site_name }}_venb |
| 172 | default_isolation: vm |
| 173 | network: noauto |
| 174 | requirements: |
| 175 | - site: |
| 176 | node: mysite |
| 177 | relationship: tosca.relationships.BelongsToOne |
| 178 | - service: |
| 179 | node: service#venb |
| 180 | relationship: tosca.relationships.BelongsToOne |
| 181 | - default_image: |
| 182 | node: image-venb |
| 183 | relationship: tosca.relationships.BelongsToOne |
| 184 | - default_flavor: |
| 185 | node: m1.xlarge |
| 186 | relationship: tosca.relationships.BelongsToOne |
| 187 | |
Andy Bavier | d730b6d | 2017-11-17 08:52:07 -0700 | [diff] [blame] | 188 | |
| 189 | #vSPGWC Service |
| 190 | service#vspgwc: |
| 191 | type: tosca.nodes.VSPGWCService |
| 192 | properties: |
| 193 | name: vspgwc |
| 194 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 195 | private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa |
| 196 | artifacts: |
| 197 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 198 | |
| 199 | {{ site_name }}_vspgwc: |
| 200 | description: SDN controller slice |
| 201 | type: tosca.nodes.Slice |
| 202 | properties: |
| 203 | name: {{ site_name }}_vspgwc |
| 204 | default_isolation: vm |
| 205 | network: noauto |
| 206 | requirements: |
| 207 | - site: |
| 208 | node: mysite |
| 209 | relationship: tosca.relationships.BelongsToOne |
| 210 | - service: |
| 211 | node: service#vspgwc |
| 212 | relationship: tosca.relationships.BelongsToOne |
| 213 | - default_image: |
| 214 | node: image-spgwc |
| 215 | relationship: tosca.relationships.BelongsToOne |
| 216 | - default_flavor: |
| 217 | node: m1.large |
| 218 | relationship: tosca.relationships.BelongsToOne |
| 219 | |
| 220 | intel_vspgwc: |
| 221 | type: tosca.nodes.VSPGWCVendor |
| 222 | properties: |
| 223 | name: intel_vspgwc |
| 224 | requirements: |
| 225 | - image: |
| 226 | node: image-spgwc |
| 227 | relationship: tosca.relationships.BelongsToOne |
| 228 | - flavor: |
| 229 | node: m1.large |
| 230 | relationship: tosca.relationships.BelongsToOne |
| 231 | |
Andy Bavier | d730b6d | 2017-11-17 08:52:07 -0700 | [diff] [blame] | 232 | |
| 233 | #vSPGWU Service |
| 234 | service#vspgwu: |
| 235 | type: tosca.nodes.VSPGWUService |
| 236 | properties: |
| 237 | name: vspgwu |
| 238 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 239 | private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa |
| 240 | artifacts: |
| 241 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
| 242 | |
| 243 | {{ site_name }}_vspgwu: |
| 244 | description: SDN controller slice |
| 245 | type: tosca.nodes.Slice |
| 246 | properties: |
| 247 | name: {{ site_name }}_vspgwu |
| 248 | default_isolation: vm |
| 249 | network: noauto |
| 250 | requirements: |
| 251 | - site: |
| 252 | node: mysite |
| 253 | relationship: tosca.relationships.BelongsToOne |
| 254 | - service: |
| 255 | node: service#vspgwu |
| 256 | relationship: tosca.relationships.BelongsToOne |
| 257 | - default_image: |
| 258 | node: image-spgwu |
| 259 | relationship: tosca.relationships.BelongsToOne |
| 260 | - default_flavor: |
| 261 | node: m1.xlarge |
| 262 | relationship: tosca.relationships.BelongsToOne |
| 263 | |
| 264 | intel_vspgwu: |
| 265 | type: tosca.nodes.VSPGWUVendor |
| 266 | properties: |
| 267 | name: intel_vspgwu |
| 268 | requirements: |
| 269 | - image: |
| 270 | node: image-spgwu |
| 271 | relationship: tosca.relationships.BelongsToOne |
| 272 | - flavor: |
| 273 | node: m1.xlarge |
| 274 | relationship: tosca.relationships.BelongsToOne |
| 275 | |
Andy Bavier | d4a56da | 2017-11-27 14:10:15 -0700 | [diff] [blame] | 276 | # vEPC Service |
| 277 | service#vepc: |
| 278 | type: tosca.nodes.VEPCService |
Andy Bavier | d730b6d | 2017-11-17 08:52:07 -0700 | [diff] [blame] | 279 | properties: |
Andy Bavier | d4a56da | 2017-11-27 14:10:15 -0700 | [diff] [blame] | 280 | name: vepc |
| 281 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
| 282 | private_key_fn: /opt/xos/services/venb/keys/mcord_rsa |
| 283 | artifacts: |
| 284 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |