Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -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 | |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 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 |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 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/vmmeservice.yaml |
| 33 | - custom_types/vmmevendor.yaml |
| 34 | - custom_types/vmmetenant.yaml |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 35 | |
| 36 | topology_template: |
| 37 | node_templates: |
| 38 | |
| 39 | # site, image, fully created in deployment.yaml |
| 40 | {{ site_name }}: |
| 41 | type: tosca.nodes.Site |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 42 | properties: |
| 43 | must-exist: true |
| 44 | name: {{ site_name }} |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 45 | |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 46 | m1.small: |
| 47 | type: tosca.nodes.Flavor |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 48 | properties: |
| 49 | name: m1.small |
| 50 | must-exist: true |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 51 | m1.large: |
| 52 | type: tosca.nodes.Flavor |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 53 | properties: |
| 54 | name: m1.large |
| 55 | must-exist: true |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 56 | m1.medium: |
| 57 | type: tosca.nodes.Flavor |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 58 | properties: |
| 59 | name: m1.medium |
| 60 | must-exist: true |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 61 | m1.xlarge: |
| 62 | type: tosca.nodes.Flavor |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 63 | properties: |
| 64 | name: m1.xlarge |
| 65 | must-exist: true |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 66 | |
| 67 | trusty-server-multi-nic: |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 68 | type: tosca.nodes.Image |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 69 | properties: |
| 70 | name: trusty-server-multi-nic |
| 71 | must-exist: true |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 72 | |
| 73 | # management networks, fully created in management-net.yaml |
| 74 | management: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 75 | type: tosca.nodes.Network |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 76 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 77 | must-exist: true |
| 78 | name: management |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 79 | |
| 80 | {% if use_management_hosts %} |
| 81 | management_hosts: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 82 | type: tosca.nodes.Network |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 83 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 84 | must-exist: true |
Andy Bavier | acc73ec | 2017-10-20 11:19:20 -0700 | [diff] [blame^] | 85 | name: management_hosts |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 86 | {% endif %} |
| 87 | |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 88 | # s1u_network is for connectivity between VMs, fully created in s1u-net.yaml |
| 89 | s1u_network: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 90 | type: tosca.nodes.Network |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 91 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 92 | must-exist: true |
| 93 | name: s1u_network |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 94 | # s11_network is for connectivity between VMs, fully created in s11-net.yaml |
| 95 | s11_network: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 96 | type: tosca.nodes.Network |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 97 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 98 | must-exist: true |
| 99 | name: s11_network |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 100 | # nbi_network is for connectivity between VMs, fully created in nbi-net.yaml |
| 101 | nbi_network: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 102 | type: tosca.nodes.Network |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 103 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 104 | must-exist: true |
| 105 | name: nbi_network |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 106 | # sbi_network is for connectivity between VMs, fully created in sbi-net.yaml |
| 107 | sbi_network: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 108 | type: tosca.nodes.Network |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 109 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 110 | must-exist: true |
| 111 | name: sbi_network |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 112 | # sgi_network is for connectivity between VMs, fully created in sgi-net.yaml |
| 113 | sgi_network: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 114 | type: tosca.nodes.Network |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 115 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 116 | must-exist: true |
| 117 | name: sgi_network |
Andy Bavier | acc73ec | 2017-10-20 11:19:20 -0700 | [diff] [blame^] | 118 | # s1mme_network is for connectivity between VMs, fully created in s1mme-net.yaml |
| 119 | s1mme_network: |
| 120 | type: tosca.nodes.Network |
| 121 | properties: |
| 122 | must-exist: true |
| 123 | name: s1mme_network |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 124 | |
| 125 | |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 126 | |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 127 | # ONOS_CORD, fully created in vtn.yaml |
| 128 | service#ONOS_CORD: |
| 129 | type: tosca.nodes.ONOSService |
| 130 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 131 | must-exist: true |
| 132 | name: ONOS_CORD |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 133 | |
| 134 | # ONOS_Fabric, fully created in fabric.yaml |
| 135 | service#ONOS_Fabric: |
| 136 | type: tosca.nodes.ONOSService |
| 137 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 138 | must-exist: true |
| 139 | name: ONOS_Fabric |
mcord | 3e58914 | 2017-05-24 16:05:07 -0700 | [diff] [blame] | 140 | |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 141 | # CORD Services |
| 142 | service#vmme: |
| 143 | type: tosca.nodes.VMMEService |
| 144 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 145 | name: mme |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 146 | kind: vEPC |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 147 | public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }} |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 148 | private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa |
| 149 | artifacts: |
| 150 | pubkey: /opt/cord_profile/key_import/mcord_rsa.pub |
Andy Bavier | acc73ec | 2017-10-20 11:19:20 -0700 | [diff] [blame^] | 151 | |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 152 | intel_mme: |
| 153 | type: tosca.nodes.VMMEVendor |
| 154 | properties: |
| 155 | name: intel_mme |
| 156 | requirements: |
| 157 | - image: |
| 158 | node: trusty-server-multi-nic |
| 159 | relationship: tosca.relationships.BelongsToOne |
| 160 | - flavor: |
| 161 | node: m1.small |
| 162 | relationship: tosca.relationships.BelongsToOne |
| 163 | |
| 164 | vmme_tenant1: |
| 165 | type: tosca.nodes.VMMETenant |
| 166 | properties: |
| 167 | name: vmme_tenant1 |
| 168 | requirements: |
| 169 | - vmme_vendor: |
| 170 | node: intel_mme |
| 171 | relationship: tosca.relationships.BelongsToOne |
| 172 | - owner: |
| 173 | node: service#vmme |
| 174 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 175 | |
| 176 | # CORD Slices |
Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -0700 | [diff] [blame] | 177 | {{ site_name }}_vmme: |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 178 | description: vMME Service Slice |
| 179 | type: tosca.nodes.Slice |
| 180 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 181 | name: {{ site_name }}_vmme |
| 182 | default_isolation: vm |
Andy Bavier | acc73ec | 2017-10-20 11:19:20 -0700 | [diff] [blame^] | 183 | network: noauto |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 184 | requirements: |
| 185 | - site: |
| 186 | node: mysite |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 187 | relationship: tosca.relationships.BelongsToOne |
| 188 | - service: |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 189 | node: service#vmme |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 190 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 191 | - default_image: |
| 192 | node: trusty-server-multi-nic |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 193 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 194 | - default_flavor: |
| 195 | node: m1.small |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 196 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 197 | |
Andy Bavier | acc73ec | 2017-10-20 11:19:20 -0700 | [diff] [blame^] | 198 | mme_slice_management_network: |
| 199 | type: tosca.nodes.NetworkSlice |
| 200 | requirements: |
| 201 | - network: |
| 202 | node: management |
| 203 | relationship: tosca.relationships.BelongsToOne |
| 204 | - slice: |
| 205 | node: {{ site_name }}_vmme |
| 206 | relationship: tosca.relationships.BelongsToOne |
| 207 | |
| 208 | mme_slice_s11_network: |
| 209 | type: tosca.nodes.NetworkSlice |
| 210 | requirements: |
| 211 | - network: |
| 212 | node: s11_network |
| 213 | relationship: tosca.relationships.BelongsToOne |
| 214 | - slice: |
| 215 | node: {{ site_name }}_vmme |
| 216 | relationship: tosca.relationships.BelongsToOne |
| 217 | |
| 218 | mme_slice_s1mme_network: |
| 219 | type: tosca.nodes.NetworkSlice |
| 220 | requirements: |
| 221 | - network: |
| 222 | node: s1mme_network |
| 223 | relationship: tosca.relationships.BelongsToOne |
| 224 | - slice: |
| 225 | node: {{ site_name }}_vmme |
| 226 | relationship: tosca.relationships.BelongsToOne |