blob: 929b65cc54265ac7b5ee8453dfd54a54133c5660 [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
Omar Abdelkaderd7116142017-08-09 10:53:18 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: Intel demo configuration at ONS '17
22
23imports:
24 - custom_types/xos.yaml
25
26topology_template:
27 node_templates:
28
29# site, fully created in deployment.yaml
30 {{ site_name }}:
31 type: tosca.nodes.Site
32 properties:
33 no-create: true
34 no-delete: true
35 no-update: true
36
37# management network, fully created in management-net.yaml
38 management:
39 type: tosca.nodes.network.Network.XOS
40 properties:
41 no-create: true
42 no-delete: true
43 no-update: true
44
45# mcord-private network template
46 mcord-private:
47 type: tosca.nodes.NetworkTemplate
48 properties:
49 vtn_kind: PRIVATE
50
51# mcord-access network template
52 mcord-access:
53 type: tosca.nodes.NetworkTemplate
54 properties:
55 vtn_kind: ACCESS_AGENT
56
57# OpenStack flavor
58 m1.large:
59 type: tosca.nodes.Flavor
60
61# compute-node image
62 trusty-server-multi-nic:
63 type: tosca.nodes.Image
64
65# CPDP_1 Network
66 CPDP_1:
67 type: tosca.nodes.network.Network
68 properties:
69 ip_version: 4
70 requirements:
71 - network_template:
72 node: mcord-private
73 relationship: tosca.relationships.UsesNetworkTemplate
74 - owner:
75 node: {{ site_name }}_CP_slice
76 relationship: tosca.relationships.MemberOfSlice
77 - connection:
78 node: {{ site_name }}_CP_slice
79 relationship: tosca.relationships.ConnectsToSlice
80 - connection:
81 node: {{ site_name }}_DP_slice
82 relationship: tosca.relationships.ConnectsToSlice
83
84# S1U_1 Network
85 S1U_1:
86 type: tosca.nodes.network.Network
87 properties:
88 ip_version: 4
89 requirements:
90 - network_template:
91 node: mcord-access
92 relationship: tosca.relationships.UsesNetworkTemplate
93 - owner:
94 node: mysite_DP_slice
95 relationship: tosca.relationships.MemberOfSlice
96 - connection:
97 node: mysite_DP_slice
98 relationship: tosca.relationships.ConnectsToSlice
99
100# S11_1 Network
101 S11_1:
102 type: tosca.nodes.network.Network
103 properties:
104 ip_version: 4
105 requirements:
106 - network_template:
107 node: mcord-access
108 relationship: tosca.relationships.UsesNetworkTemplate
109 - owner:
110 node: {{ site_name }}_CP_slice
111 relationship: tosca.relationships.MemberOfSlice
112 - connection:
113 node: {{ site_name }}_CP_slice
114 relationship: tosca.relationships.ConnectsToSlice
115
116# SGI_1 Network
117 SGI_1:
118 type: tosca.nodes.network.Network
119 properties:
120 ip_version: 4
121 requirements:
122 - network_template:
123 node: mcord-access
124 relationship: tosca.relationships.UsesNetworkTemplate
125 - owner:
126 node: mysite_DP_slice
127 relationship: tosca.relationships.MemberOfSlice
128 - connection:
129 node: mysite_DP_slice
130 relationship: tosca.relationships.ConnectsToSlice
131
132# CP_slice Slice
133 {{ site_name }}_CP_slice:
134 type: tosca.nodes.Slice
135 properties:
136 network: noauto
137 requirements:
138 - slice:
139 node: {{ site_name }}
140 relationship: tosca.relationships.MemberOfSite
141 - image:
142 node: trusty-server-multi-nic
143 relationship: tosca.relationships.DefaultImage
144 - default_flavor:
145 node: m1.large
146 relationship: tosca.relationships.DefaultFlavor
147 - network_mgmt:
148 node: management
149 relationship: tosca.relationships.ConnectsToNetwork
150
151# DP_slice Slice
152 {{ site_name }}_DP_slice:
153 type: tosca.nodes.Slice
154 properties:
155 network: noauto
156 requirements:
157 - slice:
158 node: mysite
159 relationship: tosca.relationships.MemberOfSite
160 - image:
161 node: trusty-server-multi-nic
162 relationship: tosca.relationships.DefaultImage
163 - default_flavor:
164 node: m1.large
165 relationship: tosca.relationships.DefaultFlavor
166 - network_mgmt:
167 node: management
168 relationship: tosca.relationships.ConnectsToNetwork
169
170## CP_server Compute Node
171# CP_server:
172# type: tosca.nodes.Compute
173# capabilities:
174# # Host container properties
175# host:
176# properties:
177# num_cpus: 1
178# disk_size: 10 GB
179# mem_size: 256 MB
180# requirements:
181# - slice:
182# node: {{ site_name }}_CP_slice
183# relationship: tosca.relationships.MemberOfSlice
184#
185## DP_server Compute Node
186# DP_server:
187# type: tosca.nodes.Compute
188# capabilities:
189# # Host container properties
190# host:
191# properties:
192# num_cpus: 1
193# disk_size: 10 GB
194# mem_size: 1024 MB
195# requirements:
196# - slice:
197# node: {{ site_name }}_DP_slice
198# relationship: tosca.relationships.MemberOfSlice
199