blob: 2935f822cc146ef9c17607ef49c8722dcbe19174 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
mcord3e589142017-05-24 16:05:07 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
Pingping Lin2da4fec2017-10-16 17:50:54 -070025 - 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
mcord3e589142017-05-24 16:05:07 -070035
36topology_template:
37 node_templates:
38
39# site, image, fully created in deployment.yaml
40 {{ site_name }}:
41 type: tosca.nodes.Site
Pingping Lin2da4fec2017-10-16 17:50:54 -070042 properties:
43 must-exist: true
44 name: {{ site_name }}
mcord3e589142017-05-24 16:05:07 -070045
Pingping Lin040a7732017-10-05 20:23:40 -070046 m1.small:
47 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070048 properties:
49 name: m1.small
50 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070051 m1.large:
52 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070053 properties:
54 name: m1.large
55 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070056 m1.medium:
57 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070058 properties:
59 name: m1.medium
60 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070061 m1.xlarge:
62 type: tosca.nodes.Flavor
Pingping Lin2da4fec2017-10-16 17:50:54 -070063 properties:
64 name: m1.xlarge
65 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070066
67 trusty-server-multi-nic:
mcord3e589142017-05-24 16:05:07 -070068 type: tosca.nodes.Image
Pingping Lin2da4fec2017-10-16 17:50:54 -070069 properties:
70 name: trusty-server-multi-nic
71 must-exist: true
mcord3e589142017-05-24 16:05:07 -070072
73# management networks, fully created in management-net.yaml
74 management:
Pingping Lin2da4fec2017-10-16 17:50:54 -070075 type: tosca.nodes.Network
mcord3e589142017-05-24 16:05:07 -070076 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070077 must-exist: true
78 name: management
mcord3e589142017-05-24 16:05:07 -070079
80{% if use_management_hosts %}
81 management_hosts:
Pingping Lin2da4fec2017-10-16 17:50:54 -070082 type: tosca.nodes.Network
mcord3e589142017-05-24 16:05:07 -070083 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070084 must-exist: true
85 name: management
mcord3e589142017-05-24 16:05:07 -070086{% endif %}
87
Andy Bavierc4379e22017-10-17 10:14:57 -070088# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
89 s1u_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -070090 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -070091 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070092 must-exist: true
93 name: s1u_network
Andy Bavierc4379e22017-10-17 10:14:57 -070094# s11_network is for connectivity between VMs, fully created in s11-net.yaml
95 s11_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -070096 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -070097 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -070098 must-exist: true
99 name: s11_network
Andy Bavierc4379e22017-10-17 10:14:57 -0700100# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
101 nbi_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700102 type: tosca.nodes.Network
Andy Bavierc4379e22017-10-17 10:14:57 -0700103 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700104 must-exist: true
105 name: nbi_network
Andy Bavierc4379e22017-10-17 10:14:57 -0700106# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
107 sbi_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700108 type: tosca.nodes.Network
Andy Bavierc4379e22017-10-17 10:14:57 -0700109 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700110 must-exist: true
111 name: sbi_network
Andy Bavierc4379e22017-10-17 10:14:57 -0700112# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
113 sgi_network:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700114 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -0700115 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700116 must-exist: true
117 name: sgi_network
118
119
Pingping Lin040a7732017-10-05 20:23:40 -0700120
mcord3e589142017-05-24 16:05:07 -0700121# ONOS_CORD, fully created in vtn.yaml
122 service#ONOS_CORD:
123 type: tosca.nodes.ONOSService
124 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700125 must-exist: true
126 name: ONOS_CORD
mcord3e589142017-05-24 16:05:07 -0700127
128# ONOS_Fabric, fully created in fabric.yaml
129 service#ONOS_Fabric:
130 type: tosca.nodes.ONOSService
131 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700132 must-exist: true
133 name: ONOS_Fabric
mcord3e589142017-05-24 16:05:07 -0700134
Pingping Lin040a7732017-10-05 20:23:40 -0700135# CORD Services
136 service#vmme:
137 type: tosca.nodes.VMMEService
138 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700139 name: mme
Pingping Lin040a7732017-10-05 20:23:40 -0700140 kind: vEPC
Pingping Lin2da4fec2017-10-16 17:50:54 -0700141 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
Pingping Lin040a7732017-10-05 20:23:40 -0700142 private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa
143 artifacts:
144 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
Pingping Lin2da4fec2017-10-16 17:50:54 -0700145 intel_mme:
146 type: tosca.nodes.VMMEVendor
147 properties:
148 name: intel_mme
149 requirements:
150 - image:
151 node: trusty-server-multi-nic
152 relationship: tosca.relationships.BelongsToOne
153 - flavor:
154 node: m1.small
155 relationship: tosca.relationships.BelongsToOne
156
157 vmme_tenant1:
158 type: tosca.nodes.VMMETenant
159 properties:
160 name: vmme_tenant1
161 requirements:
162 - vmme_vendor:
163 node: intel_mme
164 relationship: tosca.relationships.BelongsToOne
165 - owner:
166 node: service#vmme
167 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -0700168
169# CORD Slices
Andy Bavierc4379e22017-10-17 10:14:57 -0700170 {{ site_name }}_vmme:
Pingping Lin040a7732017-10-05 20:23:40 -0700171 description: vMME Service Slice
172 type: tosca.nodes.Slice
173 properties:
Pingping Lin2da4fec2017-10-16 17:50:54 -0700174 name: {{ site_name }}_vmme
175 default_isolation: vm
Pingping Lin040a7732017-10-05 20:23:40 -0700176 requirements:
177 - site:
178 node: mysite
Pingping Lin2da4fec2017-10-16 17:50:54 -0700179 relationship: tosca.relationships.BelongsToOne
180 - service:
Pingping Lin040a7732017-10-05 20:23:40 -0700181 node: service#vmme
Pingping Lin2da4fec2017-10-16 17:50:54 -0700182 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -0700183 - default_image:
184 node: trusty-server-multi-nic
Pingping Lin2da4fec2017-10-16 17:50:54 -0700185 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -0700186 - default_flavor:
187 node: m1.small
Pingping Lin2da4fec2017-10-16 17:50:54 -0700188 relationship: tosca.relationships.BelongsToOne
189 #- connection_to_management:
190 # node: management
191 # relationship: tosca.relationships.BelongsToMany
192 #- connection_to_s11_network:
193 # node: s11_network
194 # relationship: tosca.relationships.ConnectsToNetwork
195
196# will enable this part after sapan fix the obj issue
197# mme_slice_s11_network:
198# type: tosca.nodes.NetworkSlice
199# requirements:
200# - network:
201# node: s11_network
202# relationship: tosca.relationships.BelongsToOne
203# - slice:
204# node: {{ site_name }}_vmme
205# relationship: tosca.relationships.BelongsToOne