blob: 335dfedd6a318f3fd677ec238b08c0e358eab1b2 [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup MCORD-related services.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9
10 tosca.nodes.MCORDService:
11 derived_from: tosca.nodes.Root
12 description: >
13 An XOS Service object. Services may be listed in the Service
14 directory and may be linked together via Tenancy Relationships.
15 capabilities:
16 scalable:
17 type: tosca.capabilities.Scalable
18 service:
19 type: tosca.capabilities.xos.Service
20 properties:
21 no-delete:
22 type: boolean
23 default: false
24 description: Do not allow Tosca to delete this object
25 no-create:
26 type: boolean
27 default: false
28 description: Do not allow Tosca to create this object
29 no-update:
30 type: boolean
31 default: false
32 description: Do not allow Tosca to update this object
33 kind:
34 type: string
35 default: RAN
36 description: Type of service.
37 view_url:
38 type: string
39 required: false
40 description: URL to follow when icon is clicked in the Service Directory.
41 icon_url:
42 type: string
43 required: false
44 description: ICON to display in the Service Directory.
45 enabled:
46 type: boolean
47 default: true
48 published:
49 type: boolean
50 default: true
51 description: If True then display this Service in the Service Directory.
52 public_key:
53 type: string
54 required: false
55 description: Public key to install into Instances to allows Services to SSH into them.
56 private_key_fn:
57 type: string
58 required: false
59 description: Location of private key file
60 versionNumber:
61 type: string
62 required: false
63 description: Version number of Service.
64
65 tosca.nodes.VBBUComponent:
66 derived_from: tosca.nodes.Root
67 description: >
68 CORD: vBBU Component of MCORD Service.
69 properties:
70 kind:
71 type: string
72 default: RAN
73 description: Kind of component
74 s1u_tag:
75 type: string
76 required: false
77 default: 901
78 description: VTN stag port-name
79 s1mme_tag:
80 type: string
81 required: false
82 default: 900
83 description: VTN stag port-name
84 rru_tag:
85 type: string
86 required: false
87 default: 999
88 description: VTN stag port-name
89 display_message:
90 type: string
91 required: false
92 default: New vBBU Component
93 description: Just a message
94
95 tosca.nodes.VPGWCComponent:
96 derived_from: tosca.nodes.Root
97 description: >
98 CORD: vPGWC Component of MCORD Service.
99 properties:
100 kind:
101 type: string
102 default: VPGWC_KIND
103 description: Kind of component
104 s5s8_pgw_tag:
105 type: string
106 required: false
107 default: 300
108 description: VTN stag port-name
109 display_message:
110 type: string
111 required: false
112 default: New vPGWc Component
113 description: Just a message
114
115topology_template:
116 node_templates:
117 vBBU:
118 type: tosca.nodes.MCORDService
119 requirements:
120 properties:
121 kind: RAN
122 icon_url: /static/mCordServices/service_server.png
123 view_url: /admin/mcord/vbbucomponent
124 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000125 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000126 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000127 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000128
129 vPGWC:
130 type: tosca.nodes.MCORDService
131 requirements:
132 properties:
133 kind: vEPC
134 icon_url: /static/mCordServices/service_server.png
135 view_url: /admin/mcord/vpgwccomponent
136 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000137 #private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
138 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000139 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000140 #pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
141 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000142
143 m1.xlarge:
144 type: tosca.nodes.Flavor
145
146 Private:
147 type: tosca.nodes.NetworkTemplate
148
149 External:
150 type: tosca.nodes.NetworkTemplate
151
152 management_template:
153 type: tosca.nodes.NetworkTemplate
154 properties:
155 visibility: private
156 translation: none
157
158 management:
159 type: tosca.nodes.network.Network.XOS
160# properties:
161# no-create: true
162# no-delete: true
163# no-update: true
164
165 lan_3gpp_s1mme_network:
166 type: tosca.nodes.network.Network.XOS
167 properties:
168 ip_version: 4
169 labels: lan_3gpp_s1uc_net
170 cidr: 172.16.1.0/24
171 start_ip: 172.16.1.3
172 end_ip: 172.16.1.12
173 gateway_ip: 172.16.1.1
174 requirements:
175 - network_template:
176 node: External
177 relationship: tosca.relationships.UsesNetworkTemplate
178 - owner:
179 node: mysite_mobile_net
180 relationship: tosca.relationships.MemberOfSlice
181 - connection:
182 node: mysite_vbbu_slice1
183 relationship: tosca.relationships.ConnectsToSlice
184
185 lan_3gpp_s1u_network:
186 type: tosca.nodes.network.Network.XOS
187 properties:
188 ip_version: 4
189 labels: lan_3gpp_s1u_net
190 cidr: 172.16.2.0/24
191 start_ip: 172.16.2.3
192 end_ip: 172.16.2.12
193 gateway_ip: 172.16.16.1
194 requirements:
195 - network_template:
196 node: External
197 relationship: tosca.relationships.UsesNetworkTemplate
198 - owner:
199 node: mysite_mobile_net
200 relationship: tosca.relationships.MemberOfSlice
201 - connection:
202 node: mysite_vbbu_slice1
203 relationship: tosca.relationships.ConnectsToSlice
204
205 lan_rru_network:
206 type: tosca.nodes.network.Network.XOS
207 properties:
208 ip_version: 4
209 labels: lan_rru_net
210 cidr: 172.16.0.0/24
211 start_ip: 172.16.0.3
212 end_ip: 172.16.0.12
213 gateway_ip: 172.16.0.1
214 requirements:
215 - network_template:
216 node: External
217 relationship: tosca.relationships.UsesNetworkTemplate
218 - owner:
219 node: mysite_mobile_net
220 relationship: tosca.relationships.MemberOfSlice
221 - connection:
222 node: mysite_vbbu_slice1
223 relationship: tosca.relationships.ConnectsToSlice
224
225 lan_3gpp_s5s8_pgw_network:
226 type: tosca.nodes.network.Network.XOS
227 properties:
228 ip_version: 4
229 labels: lan_3gpp_s5s8_pgw_net
230 cidr: 172.17.1.0/24
231 start_ip: 172.17.1.2
232 end_ip: 172.17.1.8
233 gateway_ip: 172.17.1.1
234 requirements:
235 - network_template:
236 node: External
237 relationship: tosca.relationships.UsesNetworkTemplate
238 - owner:
239 node: mysite_mobile_net
240 relationship: tosca.relationships.MemberOfSlice
241 - connection:
242 node: mysite_vpgwc_slice1
243 relationship: tosca.relationships.ConnectsToSlice
244
245 mysite:
246 type: tosca.nodes.Site
247
248 mcord-bbu-multi-nic:
249 type: tosca.nodes.Image
250
251 mcord-vpgwc-onos-multi-nic:
252 type: tosca.nodes.Image
253
254 mysite_management:
255 description: This slice exists solely to own the management network
256 type: tosca.nodes.Slice
257 properties:
258 network: noauto
259 requirements:
260 - site:
261 node: mysite
262 relationship: tosca.relationships.MemberOfSite
263
264 mysite_mobile_net:
265 description: This slice exists solely to own the mobile network
266 type: tosca.nodes.Slice
267 properties:
268 network: noauto
269 requirements:
270 - site:
271 node: mysite
272 relationship: tosca.relationships.MemberOfSite
273
274 mysite_vbbu_slice1:
275 description: vBBU Service Slice 1
276 type: tosca.nodes.Slice
277 requirements:
278 - vBBU:
279 node: vBBU
280 relationship: tosca.relationships.MemberOfService
281 - site:
282 node: mysite
283 relationship: tosca.relationships.MemberOfSite
284 - default_image:
285 node: mcord-bbu-multi-nic
286 relationship: tosca.relationships.DefaultImage
287 - default_flavor:
288 node: m1.xlarge
289 relationship: tosca.relationships.DefaultFlavor
290 - management:
291 node: management
292 relationship: tosca.relationships.ConnectsToNetwork
293 properties:
294 network: noauto
295# default_flavor: m1.xlarge
296 default_node: computeBBU2
297
298 mysite_vpgwc_slice1:
299 description: vPGWC Service Slice 1
300 type: tosca.nodes.Slice
301 requirements:
302 - vPGWC:
303 node: vPGWC
304 relationship: tosca.relationships.MemberOfService
305 - site:
306 node: mysite
307 relationship: tosca.relationships.MemberOfSite
308 - default_image:
309 node: mcord-vpgwc-onos-multi-nic
310 relationship: tosca.relationships.DefaultImage
311 - default_flavor:
312 node: m1.xlarge
313 relationship: tosca.relationships.DefaultFlavor
314 - management:
315 node: management
316 relationship: tosca.relationships.ConnectsToNetwork
317 properties:
318 network: noauto
319 default_node: compute10
Pingping Lineb05ccd2016-09-19 21:23:59 +0000320
321 # TODO: will uncomment it when pgw service is ready
322 #mysite_VPGWC_Component:
323 # description: MCORD Service default Component
324 # type: tosca.nodes.VPGWCComponent
325 # requirements:
326 # - provider_service:
327 # node: vPGWC
328 # relationship: tosca.relationships.MemberOfService
329 # - vpgwc_slice:
330 # node: mysite_vpgwc_slice1
331 # relationship: tosca.relationships.MemberOfSlice
332 # properties:
333 # display_message: vPGWC looks good!
334 # s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000335