blob: 0b257b154cee01b65a07532046267b6d969af6f8 [file] [log] [blame]
Andy Bavier50f53172017-10-24 06:02:36 -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
19tosca_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
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
34
35topology_template:
36 node_templates:
37
38# site, image, fully created in deployment.yaml
39 {{ site_name }}:
40 type: tosca.nodes.Site
41 properties:
42 must-exist: true
43 name: {{ site_name }}
44
45 m1.small:
46 type: tosca.nodes.Flavor
47 properties:
48 name: m1.small
49 must-exist: true
50 m1.large:
51 type: tosca.nodes.Flavor
52 properties:
53 name: m1.large
54 must-exist: true
55 m1.medium:
56 type: tosca.nodes.Flavor
57 properties:
58 name: m1.medium
59 must-exist: true
60 m1.xlarge:
61 type: tosca.nodes.Flavor
62 properties:
63 name: m1.xlarge
64 must-exist: true
65
66 trusty-server-multi-nic:
67 type: tosca.nodes.Image
68 properties:
69 name: trusty-server-multi-nic
70
71# management networks, fully created in management-net.yaml
72 management:
73 type: tosca.nodes.Network
74 properties:
75 must-exist: true
76 name: management
77
78{% if use_management_hosts %}
79 management_hosts:
80 type: tosca.nodes.Network
81 properties:
82 must-exist: true
83 name: management_hosts
84{% endif %}
85
86# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
87 s1u_network:
88 type: tosca.nodes.Network
89 properties:
90 must-exist: true
91 name: s1u_network
92# s11_network is for connectivity between VMs, fully created in s11-net.yaml
93 s11_network:
94 type: tosca.nodes.Network
95 properties:
96 must-exist: true
97 name: s11_network
98# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
99 nbi_network:
100 type: tosca.nodes.Network
101 properties:
102 must-exist: true
103 name: nbi_network
104# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
105 sbi_network:
106 type: tosca.nodes.Network
107 properties:
108 must-exist: true
109 name: sbi_network
110# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
111 sgi_network:
112 type: tosca.nodes.Network
113 properties:
114 must-exist: true
115 name: sgi_network
116
117# ONOS_CORD, fully created in vtn.yaml
118 service#ONOS_CORD:
119 type: tosca.nodes.ONOSService
120 properties:
121 must-exist: true
122 name: ONOS_CORD
123
124# ONOS_Fabric, fully created in fabric.yaml
125 service#ONOS_Fabric:
126 type: tosca.nodes.ONOSService
127 properties:
128 must-exist: true
129 name: ONOS_Fabric
130
131# CORD Services
132 service#venb:
133 type: tosca.nodes.VENBService
134 properties:
135 name: venb
136 kind: vEPC
137 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
138 private_key_fn: /opt/xos/services/venb/keys/mcord_rsa
139 artifacts:
140 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
141
142# CORD Slices
143 {{ site_name }}_venb:
144 description: vENB Service Slice
145 type: tosca.nodes.Slice
146 properties:
147 name: {{ site_name }}_venb
148 default_isolation: vm
149 network: noauto
150 requirements:
151 - site:
152 node: mysite
153 relationship: tosca.relationships.BelongsToOne
154 - service:
155 node: service#venb
156 relationship: tosca.relationships.BelongsToOne
157 - default_image:
158 node: trusty-server-multi-nic
159 relationship: tosca.relationships.BelongsToOne
160 - default_flavor:
161 node: m1.small
162 relationship: tosca.relationships.BelongsToOne
163
164 venb_instance1:
165 type: tosca.nodes.VENBServiceInstance
166 properties:
167 name: venb_instance1
168 requirements:
169 - owner:
170 node: service#venb
171 relationship: tosca.relationships.BelongsToOne
172
173 venb_slice_management_network:
174 type: tosca.nodes.NetworkSlice
175 requirements:
176 - network:
177 node: management
178 relationship: tosca.relationships.BelongsToOne
179 - slice:
180 node: {{ site_name }}_venb
181 relationship: tosca.relationships.BelongsToOne
182
183 venb_slice_s11_network:
184 type: tosca.nodes.NetworkSlice
185 requirements:
186 - network:
187 node: s11_network
188 relationship: tosca.relationships.BelongsToOne
189 - slice:
190 node: {{ site_name }}_venb
191 relationship: tosca.relationships.BelongsToOne
192
193 venb_slice_s1u_network:
194 type: tosca.nodes.NetworkSlice
195 requirements:
196 - network:
197 node: s1u_network
198 relationship: tosca.relationships.BelongsToOne
199 - slice:
200 node: {{ site_name }}_venb
201 relationship: tosca.relationships.BelongsToOne
202
203 venb_slice_sgi_network:
204 type: tosca.nodes.NetworkSlice
205 requirements:
206 - network:
207 node: sgi_network
208 relationship: tosca.relationships.BelongsToOne
209 - slice:
210 node: {{ site_name }}_venb
211 relationship: tosca.relationships.BelongsToOne